原文:There is no getter for property named 'id' in 'class java.lang.Integer'

在測試時報錯:There is no getter for property named id in class java.lang.Integer 問題分析:Mybatis默認采用ONGL解析參數,所以會自動采用對象樹的形式取integer.id值,引起報錯。 解決方法: public User findUserById Param id intid 說明參數值。 ...

2017-01-12 09:29 0 1647 推薦指數:

查看詳情

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