mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-22 12:48:58 +08:00
🔖 v3.0.4 spring cloud 2020.0.1 remove @SpringCloudApplication
This commit is contained in:
parent
bb6b4837e4
commit
b620b5b897
@ -18,14 +18,16 @@ package com.pig4cloud.pig.auth;
|
||||
|
||||
import com.pig4cloud.pig.common.feign.annotation.EnablePigFeignClients;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.cloud.client.SpringCloudApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
|
||||
/**
|
||||
* @author lengleng
|
||||
* @date 2018年06月21日 认证授权中心
|
||||
*/
|
||||
@EnablePigFeignClients
|
||||
@SpringCloudApplication
|
||||
@EnableDiscoveryClient
|
||||
@SpringBootApplication
|
||||
public class PigAuthApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
@ -18,7 +18,8 @@ package com.pig4cloud.pig.gateway;
|
||||
|
||||
import com.pig4cloud.pig.common.swagger.annotation.EnablePigSwagger2;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.cloud.client.SpringCloudApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
|
||||
/**
|
||||
* @author lengleng
|
||||
@ -27,7 +28,8 @@ import org.springframework.cloud.client.SpringCloudApplication;
|
||||
* 网关应用
|
||||
*/
|
||||
@EnablePigSwagger2
|
||||
@SpringCloudApplication
|
||||
@EnableDiscoveryClient
|
||||
@SpringBootApplication
|
||||
public class PigGatewayApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
@ -20,7 +20,8 @@ import com.pig4cloud.pig.common.feign.annotation.EnablePigFeignClients;
|
||||
import com.pig4cloud.pig.common.security.annotation.EnablePigResourceServer;
|
||||
import com.pig4cloud.pig.common.swagger.annotation.EnablePigSwagger2;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.cloud.client.SpringCloudApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
|
||||
/**
|
||||
* @author lengleng
|
||||
@ -29,7 +30,8 @@ import org.springframework.cloud.client.SpringCloudApplication;
|
||||
@EnablePigSwagger2
|
||||
@EnablePigResourceServer
|
||||
@EnablePigFeignClients
|
||||
@SpringCloudApplication
|
||||
@EnableDiscoveryClient
|
||||
@SpringBootApplication
|
||||
public class PigAdminApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
@ -18,14 +18,16 @@ package com.pig4cloud.pig.monitor;
|
||||
|
||||
import de.codecentric.boot.admin.server.config.EnableAdminServer;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.cloud.client.SpringCloudApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
|
||||
/**
|
||||
* @author lengleng
|
||||
* @date 2018年06月21日 监控中心
|
||||
*/
|
||||
@EnableAdminServer
|
||||
@SpringCloudApplication
|
||||
@EnableDiscoveryClient
|
||||
@SpringBootApplication
|
||||
public class PigMonitorApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
Loading…
Reference in New Issue
Block a user