forked from luyan/epmet-cloud-lingshan
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
/**
|
|
* Copyright (c) 2018 人人开源 All rights reserved.
|
|
* <p>
|
|
* https://www.renren.io
|
|
* <p>
|
|
* 版权所有,侵权必究!
|
|
*/
|
|
|
|
package com.epmet;
|
|
|
|
import com.epmet.commons.tools.aspect.ServletExceptionHandler;
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.boot.web.servlet.ServletComponentScan;
|
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
import org.springframework.cloud.openfeign.EnableFeignClients;
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
import org.springframework.context.annotation.FilterType;
|
|
|
|
/**
|
|
* 网关服务
|
|
*
|
|
* @author Mark sunlightcs@gmail.com
|
|
* @since 1.0.0
|
|
*/
|
|
@SpringBootApplication()
|
|
@EnableDiscoveryClient
|
|
@EnableFeignClients
|
|
//@ServletComponentScan
|
|
@ComponentScan(basePackages = {"com.epmet.*"}, excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {ServletExceptionHandler.class}))
|
|
public class GatewayApplication {
|
|
|
|
public static void main(String[] args) {
|
|
SpringApplication.run(GatewayApplication.class, args);
|
|
}
|
|
}
|
|
|