Recommended items: the Spring Cloud, the Spring Security OAuth2 RBAC Rights Watch welcomed the management system relies recently upgraded to the latest version of the project
Version change
rely | Project version | Target version |
---|---|---|
Spring Boot | 2.1.9.RELEASE | 2.2.0.RELEASE |
Spring Cloud | Greenwich.SR3 | Hoxton.RC1 |
Spring Boot Admin | 2.1.6 | 2.2.0 |
Hoxton version dependency plant library
Currently Spring Cloud Hoxton
unpublished RELEASE
version of the official release planned this month
Use Hoxton.RC1
version needs to be configured spring
warehouse
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
复制代码
spring boot admin unpublished 2.2.0
adapted version
Workaround: Use snapshot version 2.2.0-SNAPSHOT
, you need to configure snapshot factory library
<repository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
复制代码
Problems encountered in upgrading
- spring boot 2.2.0 bug, resulting in incompatible and mybatis 3.5.2
Official Issue: github.com/spring-proj...
constructor injection problem, mybatis private constructor can not bind the property, causing other dependent mybatis
frame types mybatis-plus
such problems gitee.com/baomidou/my...
Failed to bind properties under 'mybatis-plus.configuration.incomplete-result-maps[0].assistant.configuration.mapped-statements[0].parameter-map.parameter-mappings[0]' to org.apache.ibatis.mapping.ParameterMapping
复制代码
- Solution:
We recompiled the mybatis 3.5.2, mybatis-plus 3.2.0 modify some source code compatible private constructor into public, maven modify the coordinates
<dependency>
<groupId>com.pig4cloud</groupId>
<artifactId>mybatis-plus</artifactId>
<version>3.2.0</
复制代码
to sum up
- The use of the
Spring Cloud RC
versions are not synced to the cloud and other domestic Ali mirror factory library
mvn clean install
复制代码
Failure may occur, best to repeat a few times
- Given the incompatibility Spring Boot 2.2.0 and mybatis and 2.2.1 will fix this problem, the proposed temporary do not directly use the upgrade 2.2.0 2.2.1
2.2.1 has been released, you can upgrade directly to 2.2.1 to resolve compatibility issues (07 November 2019 supplement)
Recommended items: the Spring Cloud, the Spring Security OAuth2 of RBAC rights management system welcome attention