Not recommended Spring Boot 2.2.0, you are sure to encounter this problem

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 Hoxtonunpublished RELEASEversion of the official release planned this month

Use Hoxton.RC1version needs to be configured springwarehouse

<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.0adapted 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 mybatisframe types mybatis-plussuch 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 RCversions 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

Guess you like

Origin juejin.im/post/5dc3915b5188257bce2b4c10