org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

配置mybatis-plus插件报错:

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.rat.codegen.mapper.SysGeneratorMapper.queryList at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:982) ~[spring-webmvc-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:866) ~[spring-webmvc-5.0.8.RELEASE.jar:5.0.8.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) ~[javax.servlet-api-3.1.0.jar:3.1.0] at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851) ~[spring-webmvc-5.0.8.RELEASE.jar:5.0.8.RELEASE] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) ~[javax.servlet-api-3.1.0.jar:3.1.0] at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74) ~[undertow-servlet-1.4.25.Final.jar:1.4.25.Final] at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129) ~[undertow-servlet-1.4.25.Final.jar:1.4.25.Final] at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) ~[spring-web-5.0.8.RELEASE.jar:5.0.8.RELEASE] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) ~[spring-web-5.0.8.RELEASE.jar:5.0.8.RELEASE] at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) ~[undertow-servlet-1.4.25.Final.jar:1.4.25.Final]

报错图片

解决方法:添加mapper-locations: classpath:mapper/*.xml

yml文件

网上排查:


网上截图

pom文件:

4.0.0 org.springframework.boot spring-boot-starter-parent 2.0.4.RELEASE com.rat codegen 0.0.1-SNAPSHOT codegen 代码生成模块 1.8 1.7 2.0.4.RELEASE 4.1.7 2.3 UTF-8 org.springframework.boot spring-boot-starter-web spring-boot-starter-tomcat org.springframework.boot ${spring-boot.version} org.projectlombok lombok true velocity org.apache.velocity ${velocity.version} org.springframework.boot spring-boot-starter-undertow 2.0.4.RELEASE mysql mysql-connector-java com.baomidou mybatis-plus ${baomidou.version} com.baomidou mybatis-plus-boot-starter 2.3 cn.hutool hutool-all ${hutool.version} commons-configuration commons-configuration 1.10 commons-lang commons-lang org.springframework.boot spring-boot-maven-plugin

你可能感兴趣的:(org.apache.ibatis.binding.BindingException: Invalid bound statement (not found))