Browse Source

@ServletComponentScan注解指定basePackages的参数,个别服务的启动类太深,扫描不到common包中的filter

dev
wangxianzhang 3 years ago
parent
commit
49189eeee7
  1. 2
      epmet-admin/epmet-admin-server/src/main/java/com/epmet/AdminApplication.java
  2. 2
      epmet-auth/src/main/java/com/epmet/AuthApplication.java
  3. 2
      epmet-gateway/src/main/java/com/epmet/GatewayApplication.java
  4. 2
      epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/DataAggregatorApplication.java
  5. 2
      epmet-module/data-report/data-report-server/src/main/java/com/epmet/DataReportApplication.java
  6. 2
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/DataStatsApplication.java
  7. 2
      epmet-module/epmet-activiti/epmet-activiti-server/src/main/java/com/epmet/ActivitiApplication.java
  8. 2
      epmet-module/epmet-common-service/common-service-server/src/main/java/com/epmet/EpmetCommonServiceApplication.java
  9. 2
      epmet-module/epmet-demo/epmet-demo-server/src/main/java/com/epmet/DemoApplication.java
  10. 2
      epmet-module/epmet-ext/epmet-ext-server/src/main/java/com/epmet/EpmetExtApplication.java
  11. 2
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/EpmetHeartApplication.java
  12. 2
      epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/JobApplication.java
  13. 2
      epmet-module/epmet-message/epmet-message-server/src/main/java/com/epmet/MessageApplication.java
  14. 2
      epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/OssApplication.java
  15. 2
      epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/EpmetPointApplication.java
  16. 2
      epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/EpmetThirdApplication.java
  17. 2
      epmet-module/gov-access/gov-access-server/src/main/java/com/epmet/GovAccessApplication.java
  18. 2
      epmet-module/gov-grid/gov-grid-server/src/main/java/com/epmet/GovGridApplication.java
  19. 2
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/GovIssueApplication.java
  20. 2
      epmet-module/gov-mine/gov-mine-server/src/main/java/com/epmet/GovMineApplication.java
  21. 2
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/GovOrgApplication.java
  22. 2
      epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/GovProjectApplication.java
  23. 2
      epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/GovVoiceApplication.java
  24. 2
      epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/OpenDataApplication.java
  25. 2
      epmet-module/oper-access/oper-access-server/src/main/java/com/epmet/OperAccessApplication.java
  26. 2
      epmet-module/oper-crm/oper-crm-server/src/main/java/com/epmet/OperCrmApplication.java
  27. 2
      epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/OperCustomizeApplication.java
  28. 2
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/ResiGroupApplication.java
  29. 2
      epmet-module/resi-guide/resi-guide-server/src/main/java/com/epmet/ResiGuideApplication.java
  30. 2
      epmet-module/resi-hall/resi-hall-server/src/main/java/com/epmet/ResiHallApplication.java
  31. 2
      epmet-module/resi-home/resi-home-server/src/main/java/com/epmet/ResiHomeApplication.java
  32. 2
      epmet-module/resi-mine/resi-mine-server/src/main/java/com/epmet/ResiMineApplication.java
  33. 2
      epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/ResiPartyMemberApplication.java
  34. 2
      epmet-module/resi-voice/resi-voice-server/src/main/java/com/epmet/ResiVoiceApplication.java
  35. 2
      epmet-openapi/epmet-openapi-scan/src/main/java/com/epmet/openapi/scan/ScanApplication.java
  36. 5
      epmet-openapi/epmet-openapi-scan/src/main/java/com/epmet/openapi/scan/controller/ScanController.java
  37. 2
      epmet-user/epmet-user-server/src/main/java/com/epmet/UserApplication.java

2
epmet-admin/epmet-admin-server/src/main/java/com/epmet/AdminApplication.java

@ -23,7 +23,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class AdminApplication { public class AdminApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-auth/src/main/java/com/epmet/AuthApplication.java

@ -23,7 +23,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan // 开启Servlet容器扫描,扫描@WebFilter等注解 @ServletComponentScan(basePackages = "com.epmet") // 开启Servlet容器扫描,扫描@WebFilter等注解
public class AuthApplication { public class AuthApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-gateway/src/main/java/com/epmet/GatewayApplication.java

@ -27,7 +27,7 @@ import org.springframework.context.annotation.FilterType;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
//@ServletComponentScan //@ServletComponentScan(basePackages = "com.epmet")
@ComponentScan(basePackages = {"com.epmet.*"}, excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {RedissonConfig.class, ThreadDispatcherConfig.class, ServletExceptionHandler.class})) @ComponentScan(basePackages = {"com.epmet.*"}, excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {RedissonConfig.class, ThreadDispatcherConfig.class, ServletExceptionHandler.class}))
public class GatewayApplication { public class GatewayApplication {

2
epmet-module/data-aggregator/data-aggregator-server/src/main/java/com/epmet/DataAggregatorApplication.java

@ -10,7 +10,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication(scanBasePackages = {"com.epmet"}, exclude = {DataSourceAutoConfiguration.class}) @SpringBootApplication(scanBasePackages = {"com.epmet"}, exclude = {DataSourceAutoConfiguration.class})
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class DataAggregatorApplication { public class DataAggregatorApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(DataAggregatorApplication.class, args); SpringApplication.run(DataAggregatorApplication.class, args);

2
epmet-module/data-report/data-report-server/src/main/java/com/epmet/DataReportApplication.java

@ -11,7 +11,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@EnableAsync @EnableAsync
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class DataReportApplication { public class DataReportApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(DataReportApplication.class, args); SpringApplication.run(DataReportApplication.class, args);

2
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/DataStatsApplication.java

@ -12,7 +12,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
@EnableFeignClients @EnableFeignClients
@SpringBootApplication (exclude = {DataSourceAutoConfiguration.class}) @SpringBootApplication (exclude = {DataSourceAutoConfiguration.class})
@EnableAsync @EnableAsync
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class DataStatsApplication { public class DataStatsApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-module/epmet-activiti/epmet-activiti-server/src/main/java/com/epmet/ActivitiApplication.java

@ -26,7 +26,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
}) })
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class ActivitiApplication { public class ActivitiApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-module/epmet-common-service/common-service-server/src/main/java/com/epmet/EpmetCommonServiceApplication.java

@ -23,7 +23,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class EpmetCommonServiceApplication { public class EpmetCommonServiceApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-module/epmet-demo/epmet-demo-server/src/main/java/com/epmet/DemoApplication.java

@ -23,7 +23,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class DemoApplication { public class DemoApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-module/epmet-ext/epmet-ext-server/src/main/java/com/epmet/EpmetExtApplication.java

@ -9,7 +9,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class EpmetExtApplication { public class EpmetExtApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/EpmetHeartApplication.java

@ -24,7 +24,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
@EnableAsync @EnableAsync
public class EpmetHeartApplication { public class EpmetHeartApplication {

2
epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/JobApplication.java

@ -23,7 +23,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class JobApplication { public class JobApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-module/epmet-message/epmet-message-server/src/main/java/com/epmet/MessageApplication.java

@ -24,7 +24,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
@EnableAsync @EnableAsync
public class MessageApplication { public class MessageApplication {

2
epmet-module/epmet-oss/epmet-oss-server/src/main/java/com/epmet/OssApplication.java

@ -23,7 +23,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class OssApplication { public class OssApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/EpmetPointApplication.java

@ -16,7 +16,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
@EnableAsync @EnableAsync
public class EpmetPointApplication { public class EpmetPointApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/EpmetThirdApplication.java

@ -12,7 +12,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class EpmetThirdApplication { public class EpmetThirdApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-module/gov-access/gov-access-server/src/main/java/com/epmet/GovAccessApplication.java

@ -13,7 +13,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
//@EnableConfigurationProperties(value = {DatabaseProperties.class}) //@EnableConfigurationProperties(value = {DatabaseProperties.class})
public class GovAccessApplication { public class GovAccessApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-module/gov-grid/gov-grid-server/src/main/java/com/epmet/GovGridApplication.java

@ -15,7 +15,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class GovGridApplication { public class GovGridApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/GovIssueApplication.java

@ -14,7 +14,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class GovIssueApplication { public class GovIssueApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(GovIssueApplication.class, args); SpringApplication.run(GovIssueApplication.class, args);

2
epmet-module/gov-mine/gov-mine-server/src/main/java/com/epmet/GovMineApplication.java

@ -9,7 +9,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class GovMineApplication { public class GovMineApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/GovOrgApplication.java

@ -24,7 +24,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
@EnableAsync @EnableAsync
public class GovOrgApplication { public class GovOrgApplication {

2
epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/GovProjectApplication.java

@ -16,7 +16,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@EnableAsync @EnableAsync
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class GovProjectApplication { public class GovProjectApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(GovProjectApplication.class, args); SpringApplication.run(GovProjectApplication.class, args);

2
epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/GovVoiceApplication.java

@ -15,7 +15,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@EnableAsync @EnableAsync
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class GovVoiceApplication { public class GovVoiceApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(GovVoiceApplication.class, args); SpringApplication.run(GovVoiceApplication.class, args);

2
epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/OpenDataApplication.java

@ -18,7 +18,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
//@ComponentScan(value = { "com.epmet" }) //@ComponentScan(value = { "com.epmet" })
public class OpenDataApplication { public class OpenDataApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-module/oper-access/oper-access-server/src/main/java/com/epmet/OperAccessApplication.java

@ -15,7 +15,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class OperAccessApplication { public class OperAccessApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(OperAccessApplication.class, args); SpringApplication.run(OperAccessApplication.class, args);

2
epmet-module/oper-crm/oper-crm-server/src/main/java/com/epmet/OperCrmApplication.java

@ -23,7 +23,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class OperCrmApplication { public class OperCrmApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-module/oper-customize/oper-customize-server/src/main/java/com/epmet/OperCustomizeApplication.java

@ -23,7 +23,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class OperCustomizeApplication { public class OperCustomizeApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/ResiGroupApplication.java

@ -24,7 +24,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
@EnableAsync @EnableAsync
public class ResiGroupApplication { public class ResiGroupApplication {

2
epmet-module/resi-guide/resi-guide-server/src/main/java/com/epmet/ResiGuideApplication.java

@ -23,7 +23,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class ResiGuideApplication { public class ResiGuideApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-module/resi-hall/resi-hall-server/src/main/java/com/epmet/ResiHallApplication.java

@ -15,7 +15,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class ResiHallApplication { public class ResiHallApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-module/resi-home/resi-home-server/src/main/java/com/epmet/ResiHomeApplication.java

@ -15,7 +15,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class ResiHomeApplication { public class ResiHomeApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-module/resi-mine/resi-mine-server/src/main/java/com/epmet/ResiMineApplication.java

@ -23,7 +23,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class ResiMineApplication { public class ResiMineApplication {
public static void main(String[] args) { public static void main(String[] args) {

2
epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/ResiPartyMemberApplication.java

@ -24,7 +24,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
@EnableAsync @EnableAsync
public class ResiPartyMemberApplication { public class ResiPartyMemberApplication {

2
epmet-module/resi-voice/resi-voice-server/src/main/java/com/epmet/ResiVoiceApplication.java

@ -14,7 +14,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
@SpringBootApplication @SpringBootApplication
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class ResiVoiceApplication { public class ResiVoiceApplication {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(ResiVoiceApplication.class, args); SpringApplication.run(ResiVoiceApplication.class, args);

2
epmet-openapi/epmet-openapi-scan/src/main/java/com/epmet/openapi/scan/ScanApplication.java

@ -22,7 +22,7 @@ import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication @SpringBootApplication
@ComponentScan(basePackages = "com.epmet") @ComponentScan(basePackages = "com.epmet")
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class ScanApplication { public class ScanApplication {
public static void main(String[] args) { public static void main(String[] args) {

5
epmet-openapi/epmet-openapi-scan/src/main/java/com/epmet/openapi/scan/controller/ScanController.java

@ -56,8 +56,9 @@ public class ScanController {
*/ */
@RequestMapping("textSyncScan") @RequestMapping("textSyncScan")
public Result<SyncScanResult> textSyncScan(@RequestBody TextScanParam param) { public Result<SyncScanResult> textSyncScan(@RequestBody TextScanParam param) {
ValidatorUtils.validateEntity(param); //ValidatorUtils.validateEntity(param);
return scanService.sendTextScan(param); //return scanService.sendTextScan(param);
return null;
} }
//@RequestMapping("imgAsyncScan") //@RequestMapping("imgAsyncScan")

2
epmet-user/epmet-user-server/src/main/java/com/epmet/UserApplication.java

@ -26,7 +26,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@EnableAsync @EnableAsync
@ServletComponentScan @ServletComponentScan(basePackages = "com.epmet")
public class UserApplication { public class UserApplication {
public static void main(String[] args) { public static void main(String[] args) {

Loading…
Cancel
Save