ResourceApplication.java 666 字节
Newer Older
M
ManongJu 已提交
1 2 3 4 5 6
package com.microservice.skeleton.resource;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.oauth2.client.EnableOAuth2Sso;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
M
SSO  
ManongJu 已提交
7
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
M
ManongJu 已提交
8 9 10

@SpringBootApplication
@EnableDiscoveryClient
M
SSO  
ManongJu 已提交
11
@EnableGlobalMethodSecurity(prePostEnabled = true)
M
ManongJu 已提交
12 13 14 15 16 17
public class ResourceApplication {

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