org.springframework.web.util.NestedServletException: Request processing failed; nested exception错误解决
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)异常解决
·
##出现
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): cn.hyl.mapper.UserMapper.getUser
##原因
此异常的原因是由于mapper接口编译后,在同一个目录下没有找到mapper映射文件而出现的。
##解决方法
在pom.xml中添加
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
更多推荐
已为社区贡献1条内容
所有评论(0)