Browse Source

修复:gateway去掉webcomponentscan注解

master
wxz 4 years ago
parent
commit
2ee48cf6b4
  1. 2
      epmet-gateway/src/main/java/com/epmet/GatewayApplication.java

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

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

Loading…
Cancel
Save