查看docker日志报错:
ERROR 1 — dispatcherServlet : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: Error resolving template [/emp/update], templax
te might not exist or might not be accessible by any of the configured Template Resolvers] with root cause
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [/emp/update], template might not exist or might not be accessible by any of the configured Template Resolvers
解决方法
经查询后发现是我controller返回的视图名写成了/emp/update
将视图名改为emp/update
即可正常访问
原因
通过分析源码
priva