ssm中整合Mybatis可以扫描到放在mapper下面的xml文件的方法
时间:2018-10-31 21:36:32
收藏:0
阅读:785
解决方法有两种:
1、把*Mapper.xml文件放到resource文件夹下管理
2、pom配置一下编译xml文件
<resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> </resources>
原文:https://www.cnblogs.com/limn/p/9886012.html
评论(0)