Invalid bound statement (not found)

Caused by: java.lang.RuntimeException: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.prettylearn.pretty.users.dao.PermissionMapper.selectByPageAndSelections
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.prettylearn.pretty.users.dao.PermissionMapper.selectByPageAndSelections
at org.apache.ibatis.binding.MapperMethod$SqlCommand.(MapperMethod.java:225)
at org.apache.ibatis.binding.MapperMethod.(MapperMethod.java:48)
at org.apache.ibatis.binding.MapperProxy.cachedMapperMethod(MapperProxy.java:65)
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:58)
出现以上错误的原因,本质是因为dao接口,与mapper中的xml对应不是引起,问题出现时,有可能是由于书写错误导致,有可能是打包的时候,没有将相应的.xml打包进去,当出现未打包成功时,解决方法,如下


        
            
                org.springframework.boot
                spring-boot-maven-plugin
            
        
        
            
                src/main/resources
                
                    **/*.properties
                    **/*.yml
                    **/*.ini
                    **/*.xml
                
                false
            
            
                src/main/java
                
                    **/*.properties
                    **/*.xml
                
                false
            
        
    

你可能感兴趣的:(Invalid bound statement (not found))