Browse Source

gateway排除mqConfig

master
jianjun 5 years ago
parent
commit
2503984e76
  1. 3
      epmet-gateway/src/main/java/com/epmet/GatewayApplication.java

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

@ -9,6 +9,7 @@
package com.epmet; package com.epmet;
import com.epmet.commons.tools.aspect.ServletExceptionHandler; import com.epmet.commons.tools.aspect.ServletExceptionHandler;
import com.epmet.commons.tools.config.MqConfig;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@ -25,7 +26,7 @@ import org.springframework.context.annotation.FilterType;
@SpringBootApplication() @SpringBootApplication()
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients @EnableFeignClients
@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, MqConfig.class}))
public class GatewayApplication { public class GatewayApplication {
public static void main(String[] args) { public static void main(String[] args) {

Loading…
Cancel
Save