解決了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 的問題了。it

 

查看Mybatis官方資料;io

 SQL映射的XML文件:parameterMap 已經廢棄了,如今使用parameterType來處理。module

resultMap使用正常demo

相關文章
相關標籤/搜索