mybatis / spring

Spring integration for MyBatis 3
Apache License 2.0
2.82k stars 2.6k forks source link

An idea to adapt to Spring 6.1 #884

Closed livk-cloud closed 11 months ago

livk-cloud commented 11 months ago

Remove some of the code in org.mybatis.spring.mapper.ClassPathMapperScanner#processBeanDefinitions

image

When I remove this code, mybatis-spring-boot-starter works fine

By removing the relevant code, the result is ResolvableType.NONE

What better way to deal with it?

The changes to the Spring framework are as follows

6.0

image

6.1

image

kazuki43zoo commented 11 months ago

@livk-cloud Cloud you try mybatis-spring 3.0.3-SNAPSHOT or mybatis-spring-boot 3.0.3-SNAPSHOT?

ilxqx commented 11 months ago

For the same issue, could you please tell me in which Maven repository can I find the 3.0.3-SNAPSHOT version?

livk-cloud commented 11 months ago

@livk-cloud Cloud you try mybatis-spring 3.0.3-SNAPSHOT or mybatis-spring-boot 3.0.3-SNAPSHOT?

I tried using mybatis-spring 3.0.3-SNAPSHOTand tracking the source code, which solves this problem, it is indeed a better way, thanks for the answer