org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.shen.mapper.UserMapper.findByIdhtml
大概的意思是java
找不到映射文件apache
形成的緣由是:app
將下面的代碼添加到pom.xml中url
<resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> </resources>
而後再運行就不會報這個錯誤了.net
再看這個目錄發現有映射文件了code
出現下面這個問題訪問xml
java.lang.IllegalAccessError: org.apache.commons.dbcp.DelegatingPreparedStatement.isClosed()Zhtm