|
@ -8,11 +8,13 @@ |
|
|
|
|
|
|
|
|
package com.epmet; |
|
|
package com.epmet; |
|
|
|
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.aspect.ServletExceptionHandler; |
|
|
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; |
|
|
import org.springframework.cloud.openfeign.EnableFeignClients; |
|
|
import org.springframework.cloud.openfeign.EnableFeignClients; |
|
|
import org.springframework.context.annotation.ComponentScan; |
|
|
import org.springframework.context.annotation.ComponentScan; |
|
|
|
|
|
import org.springframework.context.annotation.FilterType; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 网关服务 |
|
|
* 网关服务 |
|
@ -20,9 +22,10 @@ import org.springframework.context.annotation.ComponentScan; |
|
|
* @author Mark sunlightcs@gmail.com |
|
|
* @author Mark sunlightcs@gmail.com |
|
|
* @since 1.0.0 |
|
|
* @since 1.0.0 |
|
|
*/ |
|
|
*/ |
|
|
@SpringBootApplication |
|
|
@SpringBootApplication() |
|
|
@EnableDiscoveryClient |
|
|
@EnableDiscoveryClient |
|
|
@EnableFeignClients |
|
|
@EnableFeignClients |
|
|
|
|
|
@ComponentScan(basePackages = {"com.epmet.*"}, excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {ServletExceptionHandler.class})) |
|
|
public class GatewayApplication { |
|
|
public class GatewayApplication { |
|
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
public static void main(String[] args) { |
|
|