Org.thymeleaf.exceptions.TemplateInputException:Error Resolving Template "Admin/verifypassword", template might not exist or might not being accessible by any of the configured Template resolvers at Org.thymeleaf.TemplateRepository.getTem Plate (templaterepository.java:246) at org.thymeleaf.TemplateEngine.process (templateengine.java:1104) at Org.thymeleaf.TemplateEngine.process (templateengine.java:1060) at Org.thymeleaf.TemplateEngine.process ( templateengine.java:1011) at Org.thymeleaf.spring4.view.ThymeleafView.renderFragment (thymeleafview.java:335) at Org.thymeleaf.spring4.view.ThymeleafView.render (thymeleafview.java:190) at Org.springframework.web.servlet.DispatcherServlet.render (dispatcherservlet.java:1286) at Org.springframework.web.servlet.DispatcherServlet.processDispatchResult (dispatcherservlet.java:1041) at Org.springframework.web.servlet.DispatcherServlet.doDispatch (dispatcherservlet.java:984) at Org.springframework.web.servlet.DispatcherServlet.doSerVice (dispatcherservlet.java:901) at Org.springframework.web.servlet.FrameworkServlet.processRequest ( frameworkservlet.java:970) at Org.springframework.web.servlet.FrameworkServlet.doPost (frameworkservlet.java:872) At Javax.servlet.http.HttpServlet.service (httpservlet.java:661) at Org.springframework.web.servlet.FrameworkServlet.service (frameworkservlet.java:846) at Javax.servlet.http.HttpServlet.service (httpservlet.java:742) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:231) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:166) at Org.apache.tomcat.websocket.server.WsFilter.doFilter (wsfilter.java:52)
The above error, is a low-level error, we all know, add annotations on the Controller @controller and @restcontroller can be on the front of the interface, but the difference is that, When using the former, you must add the annotation @responsebody to the method, and if you do not add @responsebody, the error is reported because the spring default method returns the View Object (page) when using the @controller annotation. With @responsebody, the method returns the specific object. The function of the @RestController is equivalent to the @[email protected] binding body
Spring boot + thymeleaf error org.thymeleaf.exceptions.TemplateInputException