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

在使用mybaitis傳參數的時候,如果僅傳入一個類型為String的參數,那么在 xml文件中應該使用 parameter來代替參數名。 lt select id getBookingCount resultType int parameterType string gt select count from TB EMPC BOOKING ORDER T where t.state or t.s ...

2019-06-03 23:30 0 557 推薦指數:

查看詳情

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