java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for **
2017-07-30 23:50
585 查看
这个异常如果是在maven环境下出现,多半是maven没把mybatis的xml文件打包到jar包中。
解决方式:
在pom.xml的build中加入以下配置
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<!-- 是否替换资源中的属性 -->
<filtering>false</filtering>
</resource>
解决方式:
在pom.xml的build中加入以下配置
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<!-- 是否替换资源中的属性 -->
<filtering>false</filtering>
</resource>
相关文章推荐
- spring整合mybatis bug解决java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for ...
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value forCommand.c
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for EMPLOYE
- Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for ^
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for /package
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.sojs
- 【Mybatis】java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for U
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for com.dao
- Cause: java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- 解决mybatis,java.lang.IllegalArgumentException Mapped Statements collection does not contain value for
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for org.fkit
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- mybatis:java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for xxxx
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for queryAll
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for
- java.lang.IllegalArgumentException: Mapped Statements collection does not contain value for org.fkit