|
@@ -11,42 +11,29 @@ import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 启动程序
|
|
|
|
|
|
|
+ * 租户总后台启动程序(saasadminui → 8004)
|
|
|
*/
|
|
*/
|
|
|
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, RedissonAutoConfiguration.class})
|
|
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, RedissonAutoConfiguration.class})
|
|
|
@ComponentScan(
|
|
@ComponentScan(
|
|
|
basePackages = "com.fs",
|
|
basePackages = "com.fs",
|
|
|
- excludeFilters = {
|
|
|
|
|
- @ComponentScan.Filter(type = FilterType.REGEX, pattern = {
|
|
|
|
|
- "com\\.fs\\.framework\\.service\\.PermissionService",
|
|
|
|
|
- "com\\.fs\\.framework\\.service\\.UserDetailsServiceImpl",
|
|
|
|
|
- // com.fs.company.controller 中与 admin 端同名 @RequestMapping 冲突的子包,保留排除
|
|
|
|
|
- "com\\.fs\\.company\\.controller\\.chat\\..*",
|
|
|
|
|
- "com\\.fs\\.company\\.controller\\.company\\..*",
|
|
|
|
|
- "com\\.fs\\.company\\.controller\\.course\\..*",
|
|
|
|
|
- "com\\.fs\\.company\\.controller\\.crm\\..*",
|
|
|
|
|
- "com\\.fs\\.company\\.controller\\.fastGpt\\..*",
|
|
|
|
|
- "com\\.fs\\.company\\.controller\\.live\\..*",
|
|
|
|
|
- "com\\.fs\\.company\\.controller\\.newAdv\\..*",
|
|
|
|
|
- "com\\.fs\\.company\\.controller\\.qw\\..*",
|
|
|
|
|
- "com\\.fs\\.company\\.controller\\.stats\\..*",
|
|
|
|
|
- "com\\.fs\\.company\\.controller\\.transfer\\..*",
|
|
|
|
|
- // pay: AliPayBean/WxPayBean 与 fs-common 同名 bean 冲突
|
|
|
|
|
- "com\\.fs\\.company\\.controller\\.pay\\..*",
|
|
|
|
|
- // com.fs.company.aspectj: LiveControllerAspect 与 fs-live 同名 bean 冲突
|
|
|
|
|
- "com\\.fs\\.company\\.aspectj\\..*",
|
|
|
|
|
- // hisStore: fs-admin-saas 已有带 @Profile 的副本,排除 fs-company 的无 @Profile 版本
|
|
|
|
|
- "com\\.fs\\.hisStore\\.controller\\..*",
|
|
|
|
|
- "com\\.fs\\.his\\.controller\\.FsAiWorkflowController"
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ excludeFilters = @ComponentScan.Filter(type = FilterType.REGEX, pattern = {
|
|
|
|
|
+ "com\\.fs\\.framework\\.service\\.PermissionService",
|
|
|
|
|
+ "com\\.fs\\.framework\\.service\\.UserDetailsServiceImpl",
|
|
|
|
|
+ // 销售端 Controller 留在 fs-company,租户总后台不扫描
|
|
|
|
|
+ "com\\.fs\\.company\\.controller\\..*",
|
|
|
|
|
+ // his / hisStore 同名 Controller(如 FsIntegralGoodsController)只保留 his
|
|
|
|
|
+ "com\\.fs\\.hisStore\\.controller\\..*",
|
|
|
|
|
+ // pay: AliPayBean/WxPayBean 与 fs-common 同名 bean 冲突
|
|
|
|
|
+ "com\\.fs\\.company\\.controller\\.pay\\..*",
|
|
|
|
|
+ "com\\.fs\\.company\\.aspectj\\..*",
|
|
|
|
|
+ "com\\.fs\\.his\\.controller\\.FsAiWorkflowController"
|
|
|
|
|
+ })
|
|
|
)
|
|
)
|
|
|
@Transactional
|
|
@Transactional
|
|
|
@EnableAsync
|
|
@EnableAsync
|
|
|
@EnableScheduling
|
|
@EnableScheduling
|
|
|
public class FsSaasAdminApplication {
|
|
public class FsSaasAdminApplication {
|
|
|
public static void main(String[] args) {
|
|
public static void main(String[] args) {
|
|
|
- // System.setProperty("spring.devtools.restart.enabled", "false");
|
|
|
|
|
SpringApplication.run(FsSaasAdminApplication.class, args);
|
|
SpringApplication.run(FsSaasAdminApplication.class, args);
|
|
|
System.out.println("SaaSAdmin API启动成功");
|
|
System.out.println("SaaSAdmin API启动成功");
|
|
|
}
|
|
}
|