GatewayApplication.java 657 字节
Newer Older
M
initial  
ManongJu 已提交
1 2 3 4
package com.microservice.skeleton.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
M
ManongJu 已提交
5
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
M
ManongJu 已提交
6
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
M
commit  
ManongJu 已提交
7
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
M
initial  
ManongJu 已提交
8 9

@SpringBootApplication
M
ManongJu 已提交
10
@EnableDiscoveryClient
M
ManongJu 已提交
11
@EnableZuulProxy
M
commit  
ManongJu 已提交
12
@EnableGlobalMethodSecurity(prePostEnabled = true)
M
initial  
ManongJu 已提交
13 14 15 16 17 18
public class GatewayApplication {

	public static void main(String[] args) {
		SpringApplication.run(GatewayApplication.class, args);
	}
}