TemplateInputException: An error happened during template parsing (template: "ServletContext resource [/WEB-INF/templates/index.html")
ssm项目,用的thymeleaf,视图解析时总出错,检查了视图解析器和视图名称,都没错。最后才发现是把WEB-INF目录搞成webapp的同级目录了,把WEB-INF目录移到webapp目录里面就好了。
TemplateInputException: An error happened during template parsing (template: "ServletContext resource [/WEB-INF/templates/index.html")
ssm项目,用的thymeleaf,视图解析时总出错,检查了视图解析器和视图名称,都没错。最后才发现是把WEB-INF目录搞成webapp的同级目录了,把WEB-INF目录移到webapp目录里面就好了。