Invalid bound statement (not found): 异常
2017-06-28 20:43
387 查看
错误原因:mapper接口和mapper映射文件没有在同一目录下
解决方案
在dao 工程下添加如下内容 ,如果不添加,此节点, mybatis的mapper.mxl都会被遗落
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
解决方案
在dao 工程下添加如下内容 ,如果不添加,此节点, mybatis的mapper.mxl都会被遗落
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
相关文章推荐
- Invalid bound statement (not found) 异常原因
- springboot 集成mybatis Invalid bound statement (not found)异常
- springboot 集成mybatis Invalid bound statement (not found)异常
- Invalid bound statement (not found)
- MyBatis Invalid bound statement (not found)错误
- invalid bound statement (not found)
- Invalid bound statement(not found)
- Invalid bound statement (not found)-Mybatis在idea中错误
- Invalid bound statement (not found): com.shizongger.chapter2.mapper.UserMapper.insertUser
- Invalid bound statement (not found): com.zc.product.dao.IFancyMapper.totalPage
- Invalid bound statement (not found)
- Invalid bound statement (not found):.....sysFunctionDao.getSysFunctionsById...<init>(MapperMethod.ja
- Invalid bound statement (not found) 问题处理
- MYBATIS异常:INVALID BOUND STATEMENT
- Invalid bound statement (not found): com.shizongger.chapter2.mapper.UserMapper.insertUser 解决方案
- Invalid bound statement (not found)
- mybatis Invalid bound statement (not found)
- Invalid bound statement (not found)
- Invalid bound statement (not found): com.xs.vote.dao.UserDao.get
- Invalid bound statement (not found)