课程确认翻车 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.atguigu.

课程确认翻车 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.atguigu._第1张图片org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.atguigu.eduservice.mapper.EduCourseMapper.getPublicCourseInfo
课程确认翻车 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.atguigu._第2张图片

 

原因:maven不会加载xml文件  默认加载机制

高级的解决方法:

(1)pom加依赖



    
        
            src/main/java
            
                **/*.xml
            
            false
        
    

(2)

#配置mapper xml文件的路径
mybatis-plus.mapper-locations=classpath:com/guli/edu/mapper/xml/*.xml

路径改成你自己的 

两步都要做

 

 

你可能感兴趣的:(课程确认翻车 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.atguigu.)