Invalid bound statement (not found): com.java.mapper.UserMapper.queryAll错误解决方案

Invalid bound statement (not found): com.java.mapper.UserMapper.queryAll错误

今天在写代码的时候遇到了这个问题

Invalid bound statement (not found): com.java.mapper.UserMapper.queryAll错误解决方案_第1张图片
在网上试了好多方法都解决不了,最后发现是因为maybatis找不到mapper.xml文件
最后在pom.xml中加入以下代码
Invalid bound statement (not found): com.java.mapper.UserMapper.queryAll错误解决方案_第2张图片


    
      
        src/main/java
        
        
          **/*.xml
        
      
      
      
        src/main/resources
        
          **/*.yml
          **/*.properties
          **/*.xml
        
      
    
    

重新启动项目,查询成功

Invalid bound statement (not found): com.java.mapper.UserMapper.queryAll错误解决方案_第3张图片

你可能感兴趣的:(ssm框架)