出现下面异常
Mapped Statements collection does not contain value for
可能的原因:
1.mapper.xml中namspaces和dao路径一致
2.配置mapper.xml包要和mapper.xml路径一致
3.mapper.xml中id要和dao中方法名一致
4.编译后的输出文件夹下没有这个mapper.xml
java目录下的配置文件,默认不会拷贝到编译输出,把对应的配置文件都放到resource下目录结构保持正确
出现下面异常
Mapped Statements collection does not contain value for
可能的原因:
1.mapper.xml中namspaces和dao路径一致
2.配置mapper.xml包要和mapper.xml路径一致
3.mapper.xml中id要和dao中方法名一致
4.编译后的输出文件夹下没有这个mapper.xml
java目录下的配置文件,默认不会拷贝到编译输出,把对应的配置文件都放到resource下目录结构保持正确