sprint boot 1.4.x升级2.2.x踩坑

sprint boot 1.4.x升级2.2.x踩坑

问题0:

url

问题1:

spring.cloud.client.ipAddress 更新为 spring.cloud.client.ip-address

问题2:

在最新版本Greenwich中,口令不是配置security.user.namesecurity.user.password属性中,它已被废弃不推荐使用,而是配置在Spring中(spring.security.user.namespring.security.user.password)

问题3:

The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or represents more than one time zone.

在datasource:
	url:
后添加
&serverTimezone=GMT%2B8

问题4:RedisCofig配置CacheManager方式改变

@Beanpublic CacheManager cacheManager(RedisConnectionFactory factory) {    RedisCacheManager cacheManager = RedisCacheManager.create(factory);    
return cacheManager;
}

问题5:

@EnaEurekaClient->@EnableEurekaServer

依赖
		
            org.springframework.boot
            spring-boot-starter-actuator
        

问题6:https://blog.csdn.net/alinyua/article/details/80070890

Spring Boot 2下使用Feign找不到@EnableFeignClients等的解决办法

<dependency>    
    <groupId>org.springframework.cloud</groupId>    
    <artifactId>spring-cloud-openfeign</artifactId>    
    <type>pom</type>    
    <scope>import</scope>
</dependency>

问题7:

java.lang.NoClassDefFoundError: feign/slf4j/Slf4jLogger

<dependency>    
    <groupId>io.github.openfeign</groupId>    
    <artifactId>feign-slf4j</artifactId>    
    <version>9.3.1</version>
</dependency>

你可能感兴趣的:(sprint boot 1.4.x升级2.2.x踩坑)