https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.0-Migration-Guide
先把这个读完
升级前 | 升级后 | ||
| Edgware.SR6 | | |
| | | |
spring-cloud-starter-eureka | spring-cloud-starter-netflix-eureka-client | ||
spring-cloud-starter-feign | spring-cloud-starter-openfeign | ||
| org.springframework.cloud.openfeign.EnableFeignClients | ||
| | ||
| spring-cloud-starter-netflix-hystrix-dashboard | ||
| | ||
| | ||
org.springframework.cloud.netflix.feign.support.SpringEncoder | org.springframework.cloud.openfeign.support.SpringEncoder | ||
| |||
spring.cloud.client.ipAddress | spring.cloud.client.ip-address | ||
security.user.name .password | spring.security.user.name .password | ||
management.security.enabled: false | management.endpoints.web.exposure.include='*' | ||
| | ||
无 | | ||
validation-api | | | |
spring-cloud-starter-zuul | spring-cloud-starter-netflix-zuul | ||
| | ||
| | ||
druid | 1.0.11 | | |
| 1.0.11 | 1.1.13 | |
application.yml | spring.http.multipart | spring.servlet.multipart | |
| | ||
zipkin | | >=2.8.0 |
有19个模块
暂时升级一个模块,发现session不能共享
https://blog.youkuaiyun.com/qq_24484911/article/details/103478476
两个项目需要集成,并实现session共享,使用spring session实现,但一直不成功。
原因是一个项目的springboot版本较高(2.1.3.RELEASE),会将session使用base64转码
@Configuration
public class RedisSessionConfig {
/**
* @Description 解决高版本的springboot会自动将session用base64转码。
* 导致与底版本springboot无法session共享。
* 此配置为禁止转码
*/
@Bean
public DefaultCookieSerializer getDefaultCookieSerializer(){
DefaultCookieSerializer cookieSerializer = new DefaultCookieSerializer();
cookieSerializer.setUseBase64Encoding(false);
return cookieSerializer;
}
}
ClassNotFoundException: org.springframework.boot.bind.RelaxedDataBinder]
升级 druid
ClassNotFoundException: org.springframework.boot.bind.RelaxedPropertyResolver
升级 pagehelper-spring-boot-starter