Edgware 升级到 Finchley.SR4

 

 

 

 

 

https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.0-Migration-Guide

先把这个读完

 升级前升级后 
spring-cloud-dependencies
Edgware.SR6
Finchley.SR4
 
spring-boot-starter-parent
1.5.22.RELEASE
2.0.9.RELEASE
 
 spring-cloud-starter-eurekaspring-cloud-starter-netflix-eureka-client 
 spring-cloud-starter-feignspring-cloud-starter-openfeign 
 
org.springframework.cloud.netflix.feign.EnableFeignClients
org.springframework.cloud.openfeign.EnableFeignClients 
 
spring-cloud-starter-hystrix
spring-cloud-starter-netflix-hystrix
 
 
spring-cloud-starter-hystrix-dashboard
spring-cloud-starter-netflix-hystrix-dashboard 
 
org.springframework.cloud.netflix.feign.FeignClient
org.springframework.cloud.openfeign.FeignClient
 
 
 org.springframework.boot.autoconfigure.web.HttpMessageConverters
org.springframework.boot.autoconfigure.http.HttpMessageConverters
 
 org.springframework.cloud.netflix.feign.support.SpringEncoderorg.springframework.cloud.openfeign.support.SpringEncoder 
 
WebMvcConfigurerAdapter
  
 spring.cloud.client.ipAddressspring.cloud.client.ip-address 
 security.user.name
                    .password
spring.security.user.name
                .password
 
 management.security.enabled: falsemanagement.endpoints.web.exposure.include='*' 
 
spring-boot-starter-redis
spring-boot-starter-data-redis
 
 
commons-pool2
 
validation-api
1.1.0.Final
2.0.1.Final
 
 spring-cloud-starter-zuulspring-cloud-starter-netflix-zuul 
 
TomcatEmbeddedServletContainerFactory
TomcatServletWebServerFactory
 
 
EmbeddedServletContainerFactory
ServletWebServerFactory
 
druid 1.0.11
1.1.13
 
druid-spring-boot-starter
1.0.111.1.13 
application.ymlspring.http.multipartspring.servlet.multipart 
 
management.security.enabled
management.endpoints.web.exposure.include:'*'
 
zipkin
2.7.1
>=2.8.0 
 
 有19个模块
 暂时升级一个模块,发现session不能共享

  https://blog.csdn.net/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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值