CommGatewayApplication.java 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. package com.fs;
  2. import org.springframework.boot.SpringApplication;
  3. import org.springframework.boot.autoconfigure.SpringBootApplication;
  4. import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
  5. import org.springframework.context.annotation.ComponentScan;
  6. import org.springframework.context.annotation.FilterType;
  7. import org.springframework.scheduling.annotation.EnableAsync;
  8. import org.springframework.transaction.annotation.EnableTransactionManagement;
  9. /**
  10. * 通讯中间件启动类(外呼/短信统一网关)
  11. */
  12. @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
  13. @ComponentScan(
  14. basePackages = "com.fs",
  15. excludeFilters = @ComponentScan.Filter(type = FilterType.REGEX, pattern = {
  16. "com\\.fs\\.framework\\.web\\.service\\.PermissionService",
  17. "com\\.fs\\.framework\\.web\\.service\\.UserDetailsServiceImpl",
  18. "com\\.fs\\.framework\\.web\\.service\\.SysLoginService",
  19. "com\\.fs\\.framework\\.web\\.exception\\.GlobalExceptionHandler",
  20. "com\\.fs\\.framework\\.security\\.filter\\.JwtAuthenticationTokenFilter"
  21. })
  22. )
  23. @EnableTransactionManagement
  24. @EnableAsync
  25. public class CommGatewayApplication {
  26. public static void main(String[] args) {
  27. SpringApplication.run(CommGatewayApplication.class, args);
  28. System.out.println("通讯中间件 fs-comm-gateway 启动成功");
  29. }
  30. }