Home > Back-end >  Mybatis springboot integration - plus find mapper files
Mybatis springboot integration - plus find mapper files

Time:09-16

, every springboot integration mybatis - plus an error, according to online ruled out several reasons:
1. Application. The properties of configuration mapper - locations path right
2. The datasource configuration files to add @ MapperScan
3. Mapper. The namespace in the XML configuration right
But still not solve,
The following is a console error:
 org. Apache. Ibatis. Binding. BindingException: Invalid bound statement (not found) : com. Springboot. Learn. Mapper. UserMapper. Insert 
The at org. Apache. Ibatis. Binding. MapperMethod $SqlCommand. & lt; init> (MapperMethod. Java: 225) ~ [mybatis - 3.4.4. Jar: 3.4.4]
The at org. Apache. Ibatis. Binding. MapperMethod. & lt; init> (MapperMethod. Java: 48) ~ [mybatis - 3.4.4. Jar: 3.4.4]
The at org. Apache. Ibatis. Binding. MapperProxy. CachedMapperMethod (MapperProxy. Java: 65) ~ [mybatis - 3.4.4. Jar: 3.4.4]
The at org. Apache. Ibatis. Binding. MapperProxy. Invoke (MapperProxy. Java: 58) ~ [mybatis - 3.4.4. Jar: 3.4.4]
At com. Sun. Proxy. $Proxy63. Insert (Unknown Source) ~ [na: na]
At com. Springboot. Learn. Controller. UserController. Demo (UserController. Java: 36) ~ (classes/: na)
At sun. Reflect. NativeMethodAccessorImpl. Invoke0 (Native Method) ~ [na: 1.8.0 comes with _152]
At sun. Reflect. NativeMethodAccessorImpl. Invoke (NativeMethodAccessorImpl. Java: 62) ~ [na: 1.8.0 comes with _152]
At sun. Reflect. DelegatingMethodAccessorImpl. Invoke (43) DelegatingMethodAccessorImpl. Java: ~ [na: 1.8.0 comes with _152]
The at Java. Lang. Reflect. Method. Invoke (498) Method. The Java: ~ [na: 1.8.0 comes with _152]
The at org. Springframework. Web. Method. Support. InvocableHandlerMethod. DoInvoke (InvocableHandlerMethod. Java: 209) ~ [spring - web - 5.0.9. The jar: 5.0.9. RELEASE]
The at org. Springframework. Web. Method. Support. InvocableHandlerMethod. InvokeForRequest (InvocableHandlerMethod. Java: 136) ~ [spring - web - 5.0.9. The jar: 5.0.9. RELEASE]
The at org. Springframework. Web. Servlet. MVC) method. The annotation. ServletInvocableHandlerMethod. InvokeAndHandle (ServletInvocableHandlerMethod. Java: 102) ~ [spring - webmvc - 5.0.9. The jar: 5.0.9. RELEASE]
The at org. Springframework. Web. Servlet. MVC) method. The annotation. RequestMappingHandlerAdapter. InvokeHandlerMethod (RequestMappingHandlerAdapter. Java: 891) ~ [spring - webmvc - 5.0.9. The jar: 5.0.9. RELEASE]
The at org. Springframework. Web. Servlet. MVC) method. The annotation. RequestMappingHandlerAdapter. HandleInternal (RequestMappingHandlerAdapter. Java: 797) ~ [spring - webmvc - 5.0.9. The jar: 5.0.9. RELEASE]
The at org. Springframework. Web. Servlet. MVC. Method. AbstractHandlerMethodAdapter. Handle (AbstractHandlerMethodAdapter. Java: 87) ~ [spring - webmvc - 5.0.9. The jar: 5.0.9. RELEASE]
The at org. Springframework. Web. Servlet. DispatcherServlet. DoDispatch (DispatcherServlet. Java: 991) ~ [spring - webmvc - 5.0.9. The jar: 5.0.9. RELEASE]
The at org. Springframework. Web. Servlet. DispatcherServlet. DoService (DispatcherServlet. Java: 925) ~ [spring - webmvc - 5.0.9. The jar: 5.0.9. RELEASE]
The at org. Springframework. Web. Servlet. FrameworkServlet. The processRequest (FrameworkServlet. Java: 974) ~ [spring - webmvc - 5.0.9. The jar: 5.0.9. RELEASE]
The at org. Springframework. Web. Servlet. FrameworkServlet. DoGet (FrameworkServlet. Java: 866) ~ [spring - webmvc - 5.0.9. The jar: 5.0.9. RELEASE]
The at javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 635) ~ [tomcat embed - core - 8.5.34. Jar: 8.5.34]
The at org. Springframework. Web. Servlet. FrameworkServlet. Service (FrameworkServlet. Java: 851) ~ [spring - webmvc - 5.0.9. The jar: 5.0.9. RELEASE]
The at javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 742) ~ [tomcat embed - core - 8.5.34. Jar: 8.5.34]
The at org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 231) ~ [tomcat embed - core - 8.5.34. Jar: 8.5.34]
The at org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 166) ~ [tomcat embed - core - 8.5.34. Jar: 8.5.34]
At org, apache tomcat, websocket server WsFilter. DoFilter (WsFilter. Java: 52) ~ [tomcat embed - websocket - 8.5.34. Jar: 8.5.34]
The at org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 193) ~ [tomcat embed - core - 8.5.34. Jar: 8.5.34]
The at org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 166) ~ [tomcat embed - core - 8.5.34. Jar: 8.5.34]
At com. Alibaba. Druid. Support. HTTP. WebStatFilter. DoFilter (WebStatFilter. Java: 123) ~ [druid - 1.1.6. Jar: 1.1.6]
The at org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 193) ~ [tomcat embed - core - 8.5.34. Jar: 8.5.34]
The at org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 166) ~ [tomcat embed - core - 8.5.34. Jar: 8.5.34]
The at org. Springframework. Web. Filter. RequestContextFilter. DoFilterInternal (RequestContextFilter. Java: 99) ~ [spring - web - 5.0.9. The jar: 5.0.9. RELEASE]
The at org. Springframework. Web. Filter. OncePerRequestFilter. DoFilter (OncePerRequestFilter. Java: 107) ~ [spring - web - 5.0.9. The jar: 5.0.9. RELEASE]
The at org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 193) ~ [tomcat embed - core - 8.5.34. Jar: 8.5.34]
The at org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 166) ~ [tomcat embed - core - 8.5.34. Jar: 8.5.34]
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related