mybatis-plus 學習之錯 There is no getter for property named 'h' in 'class jdk.proxy3.$Proxy96'


mybatis-plus 學習之錯 There is no getter for property named 'h' in 'class jdk.proxy3.$Proxy96'

狂神 mybatis-plus教程,SQL性能分析,使用的是mybatis-plus 3.0.5

注:在v3.2.0移除 PerformanceInterceptor 相關, 建議使用 p6spy

出現如下錯誤
There is no getter for property named 'h' in 'class jdk.proxy3.$Proxy96'

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'h' in 'class jdk.proxy3.$Proxy96'
	at 
    ...
    org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:77)
	at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:446)
	at jdk.proxy2/jdk.proxy2.$Proxy67.selectList(Unknown Source)
	at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:230)
	at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:54)
    ...
Caused by: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'h' in 'class jdk.proxy3.$Proxy96'
	at org.apache.ibatis.reflection.Reflector.getGetInvoker(Reflector.java:419)
	at org.apache.ibatis.reflection.MetaClass.getGetInvoker(MetaClass.java:164)
	

原因:
jdk 不兼容
排查了半天,發現是因為jdk版本的問題
使用jdk17,無法有bug,該換jdk8則可以


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM