🔖 v3.0.4 spring cloud 2020.0.1 remove @SpringCloudApplication

This commit is contained in:
lbw 2021-01-31 18:31:38 +08:00
parent bb6b4837e4
commit b620b5b897
4 changed files with 16 additions and 8 deletions

View File

@ -18,14 +18,16 @@ package com.pig4cloud.pig.auth;
import com.pig4cloud.pig.common.feign.annotation.EnablePigFeignClients; import com.pig4cloud.pig.common.feign.annotation.EnablePigFeignClients;
import org.springframework.boot.SpringApplication; 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 * @author lengleng
* @date 2018年06月21日 认证授权中心 * @date 2018年06月21日 认证授权中心
*/ */
@EnablePigFeignClients @EnablePigFeignClients
@SpringCloudApplication @EnableDiscoveryClient
@SpringBootApplication
public class PigAuthApplication { public class PigAuthApplication {
public static void main(String[] args) { public static void main(String[] args) {

View File

@ -18,7 +18,8 @@ package com.pig4cloud.pig.gateway;
import com.pig4cloud.pig.common.swagger.annotation.EnablePigSwagger2; import com.pig4cloud.pig.common.swagger.annotation.EnablePigSwagger2;
import org.springframework.boot.SpringApplication; 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 * @author lengleng
@ -27,7 +28,8 @@ import org.springframework.cloud.client.SpringCloudApplication;
* 网关应用 * 网关应用
*/ */
@EnablePigSwagger2 @EnablePigSwagger2
@SpringCloudApplication @EnableDiscoveryClient
@SpringBootApplication
public class PigGatewayApplication { public class PigGatewayApplication {
public static void main(String[] args) { public static void main(String[] args) {

View File

@ -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.security.annotation.EnablePigResourceServer;
import com.pig4cloud.pig.common.swagger.annotation.EnablePigSwagger2; import com.pig4cloud.pig.common.swagger.annotation.EnablePigSwagger2;
import org.springframework.boot.SpringApplication; 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 * @author lengleng
@ -29,7 +30,8 @@ import org.springframework.cloud.client.SpringCloudApplication;
@EnablePigSwagger2 @EnablePigSwagger2
@EnablePigResourceServer @EnablePigResourceServer
@EnablePigFeignClients @EnablePigFeignClients
@SpringCloudApplication @EnableDiscoveryClient
@SpringBootApplication
public class PigAdminApplication { public class PigAdminApplication {
public static void main(String[] args) { public static void main(String[] args) {

View File

@ -18,14 +18,16 @@ package com.pig4cloud.pig.monitor;
import de.codecentric.boot.admin.server.config.EnableAdminServer; import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.boot.SpringApplication; 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 * @author lengleng
* @date 2018年06月21日 监控中心 * @date 2018年06月21日 监控中心
*/ */
@EnableAdminServer @EnableAdminServer
@SpringCloudApplication @EnableDiscoveryClient
@SpringBootApplication
public class PigMonitorApplication { public class PigMonitorApplication {
public static void main(String[] args) { public static void main(String[] args) {