package com.fs; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.FilterType; import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.transaction.annotation.EnableTransactionManagement; /** * 通讯中间件启动类(外呼/短信统一网关) */ @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) @ComponentScan( basePackages = "com.fs", excludeFilters = @ComponentScan.Filter(type = FilterType.REGEX, pattern = { "com\\.fs\\.framework\\.web\\.service\\.PermissionService", "com\\.fs\\.framework\\.web\\.service\\.UserDetailsServiceImpl", "com\\.fs\\.framework\\.web\\.service\\.SysLoginService", "com\\.fs\\.framework\\.web\\.exception\\.GlobalExceptionHandler", "com\\.fs\\.framework\\.security\\.filter\\.JwtAuthenticationTokenFilter" }) ) @EnableTransactionManagement @EnableAsync public class CommGatewayApplication { public static void main(String[] args) { SpringApplication.run(CommGatewayApplication.class, args); System.out.println("通讯中间件 fs-comm-gateway 启动成功"); } }