Spring boot + thymeleaf error org.thymeleaf.exceptions.TemplateInputException

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.