mybatisorg.apache.ibatis.binding.BindingException: Invalid bound statement (not found):还能这么解决,震惊!

1,先检查你的xml映射文件,是否与你的dao的文件名对应(不过这应该很容易看出来!下面来一点硬货)
mybatisorg.apache.ibatis.binding.BindingException: Invalid bound statement (not found):还能这么解决,震惊!_第1张图片

2.检查你的pom文件里面有没有加这个

<build>
 <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>com/xxx/dao/mapper/*.xml
                
            
            
                src/main/resources
            
        
 

3,检查你的myl,是否扫描到你的映射文件
mybatisorg.apache.ibatis.binding.BindingException: Invalid bound statement (not found):还能这么解决,震惊!_第2张图片
4.启动类加注解扫描@MapperScan
mybatisorg.apache.ibatis.binding.BindingException: Invalid bound statement (not found):还能这么解决,震惊!_第3张图片
解决了请点个哦!

你可能感兴趣的:(java,mybatis)