[mybatis]mybatis3 Result Maps collection does not contain value for xxx

  • Caused by: java.lang.IllegalArgumentException: Result Maps collection does not contain value for java.util.Map
  • 換成HashMap也不行:
  • Caused by: java.lang.IllegalArgumentException: Result Maps collection does not contain value for java.util.HashMap 解決:
  • https://blog.csdn.net/tornado430/article/details/81672610
  • <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap ="java.util.HashMap"> 改成
  • <select id="selectByPrimaryKey" parameterType="java.lang.String" resultType="java.util.HashMap">java

  • 修改這個不須要重啓。(devtool)

resultType="java.util.HashMap" 不能裏面寫泛型tornado

相關文章
相關標籤/搜索