Mybatis Invalid bound statement (not found)问题分析
2016-12-02 15:27
489 查看
刚开始使用IDEA进行SpringMVC项目的开发,碰到了如标题这样的问题,开始以为是spring配置文件没有配置加载mapper接口类和对应的xml文件,但是已经对照了很多项目,配置都没有问题。后来看到
Mybatis Invalid bound statement (not found)问题分析才知道原来是maven在编译的时候,如果src/main目录下有非java文件的话,需要在pom.xml文件中加上编译的配置。具体配置内容如下,
这样,就会在编译后的相应目录底下看见xml文件也在里边。
本文参考链接:http://www.lpnote.com/2016/03/04/mybatis-invalid-bound-statement-not-found/
Mybatis Invalid bound statement (not found)问题分析才知道原来是maven在编译的时候,如果src/main目录下有非java文件的话,需要在pom.xml文件中加上编译的配置。具体配置内容如下,
<build> <resources> <resource> <directory>src/main/resources</directory> <excludes> <exclude>**/.svn/*</exclude> </excludes> </resource> <resource> <directory>src/main/java</directory> <excludes> <exclude>**/.svn/*</exclude> </excludes> <includes> <include>**/*.xml</include> </includes> </resource> </resources> </build>
这样,就会在编译后的相应目录底下看见xml文件也在里边。
本文参考链接:http://www.lpnote.com/2016/03/04/mybatis-invalid-bound-statement-not-found/
相关文章推荐
- springmvc+mybatis 诡异问题 Invalid bound statement (not found)
- mybatis Invalid bound statement (not found)
- Invalid bound statement (not found)问题
- maven + mybatis Invalid bound statement (not found) 错误解决
- springboot 集成mybatis Invalid bound statement (not found)异常
- mybatis invalid bound statement (not found) : com.XXXX
- Maven项目mybatis Invalid bound statement (not found)解决方法
- MyBatis Invalid bound statement (not found)错误
- Mybatis——Invalid bound statement (not found)-Could not find result map java.lang.Integer
- mybatis invalid bound statement (not found) 当心文件确实不存在
- mybatis一个怪异的问题: Invalid bound statement not found
- springboot 集成mybatis Invalid bound statement (not found)异常
- Maven项目mybatis Invalid bound statement (not found)解决方法
- Invalid bound statement (not found) 问题处理
- spring boot mybatis Invalid bound statement (not found)
- Invalid bound statement (not found)-Mybatis在idea中错误
- mybatis一个怪异的问题: Invalid bound statement not found":
- 关于spring+mybatis多数据源,报Invalid bound statement的问题
- MyBatis Invalid Bound Statement
- Invalid bound statement (not found)