1. 程式人生 > >解決了Mybatis中Parameter Maps collection does not contain value for xxx 的問題

解決了Mybatis中Parameter Maps collection does not contain value for xxx 的問題

parameterMap="moduleMap" 更改為parameterType="com.demo.sys.entity.Module" 解決了Mybatis中Parameter Maps collection does not contain value for xxx 的問題了。

 

檢視Mybatis官方資料;

 SQL對映的XML檔案:parameterMap 已經廢棄了,現在使用parameterType來處理。

resultMap使用正常