升级Spring Boot到2.5.x,升级Spring Cloud到2020.x
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
package com.central;
|
||||
|
||||
import com.central.common.ribbon.annotation.EnableFeignInterceptor;
|
||||
import com.central.common.lb.annotation.EnableFeignInterceptor;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
|
||||
|
||||
/**
|
||||
* @author zlt
|
||||
@@ -13,10 +12,12 @@ import org.springframework.session.data.redis.config.annotation.web.http.EnableR
|
||||
@EnableFeignClients
|
||||
@EnableFeignInterceptor
|
||||
@EnableDiscoveryClient
|
||||
@EnableRedisHttpSession
|
||||
//@EnableRedisHttpSession
|
||||
@SpringBootApplication
|
||||
public class UaaServerApp {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(UaaServerApp.class, args);
|
||||
SpringApplication application = new SpringApplication(UaaServerApp.class);
|
||||
application.setEnvironmentPrefix("zlt-uaa");
|
||||
application.run(args);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user