org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.shen.mapper.UserMapper.findById
大概的意思是
找不到映射文件
造成的原因是:
将下面的代码添加到pom.xml中
<resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> </resources>
然后再运行就不会报这个错误了
再看这个目录发现有映射文件了
出现下面这个问题访问
java.lang.IllegalAccessError: org.apache.commons.dbcp.DelegatingPreparedStatement.isClosed()Z