当前使用版本(必填,否则不予处理)
spring boot3.0.0 mybatis-plus 3.5.2.7-SNAPSHOT会发出WARN消息,感觉升级mybatis-spring即可解决此问题
该问题是如何引起的?(确定最新版也有问题再提!!!)
spring 6.0.1将LocalVariableTableParameterNameDiscoverer标记为废弃
Spring 6.0.3中已被修复,此issues忽略即可。 https://github.com/spring-projects/spring-framework/issues/29612
重现步骤(如果有就写完整)
启动即可重现
报错信息
org.springframework.core.LocalVariableTableParameterNameDiscoverer.inspectClass(LocalVariableTableParameterNameDiscoverer.java:123) : Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: org.mybatis.spring.mapper.MapperFactoryBean
Comment From: tume002
I still see this warning with Spring 6.0.4.
Using deprecated '-debug' fallback for parameter name resolution. Compile the affected code with '-parameters' instead or avoid its introspection: org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration
https://github.com/spring-projects/spring-framework/issues/29612 I thought this bug is fixed in above issue. Can anyone confirm this please?
Comment From: luamas
@tume002 mybatis-plus 3.5.3.1 ,spring 6.0.4 is not affected by this parameter, see https://github.com/spring-projects/spring-framework/issues/29612, https://github.com/spring-projects/spring-framework/commit/e47978e1685d56b914e4bb5ef97f83e04d2d917b