整合maven ssm框架时遇到的问题 Invalid bound statement (not found):

第一个waring   No Mybatis mapper was found in .........java

这个是mapper文件夹下无文件形成的mysql

第二个是在数据库链接配置中替换spring

jdbc_url=jdbc:mysql://localhost:3306/manong?useUnicode=true&characterEncoding=utf8&serverTimezone=UTC

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.manong.mapper.UserMapper.selectAllsql

1.找spring配置检查mybatis配置是否正确   Mapper映射文件的包扫描器   是否正确数据库

2. 检查 dao层 mapper接口与mapper.xml 名称  是否存在 并是否一致 apache

3.检查xml文件中namespace 命名空间是否一致mybatis

4.若是上述都对仍是报错尝试在pom中添加(ps:本人就是未添加这个)app

<build>
   <resources>
       <resource>
           <directory>src/main/java</directory>
           <includes>
               <include>**/*.xml</include>
           </includes>
           <filtering>true</filtering>
       </resource>
   </resources>
</build>
相关文章
相关标签/搜索