原文:錯誤解決:There is no getter for property named 'id' in class 'java.lang.String'

使用mybatis傳入參數,如果在mappin.xml中使用 lt if gt 標簽判斷該參數是否為空,通常會報以上異常,解決方法: 在接口中該方法的參數前加上 Param 參數名 注解,即可 ...

2019-09-24 15:23 0 411 推薦指數:

查看詳情

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