报错信息:
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [addUsers], template might not exist or might not be accessible by any of the configured Template Resolvers
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [favicon.ico], template might not exist or might not be accessible by any of the configured Template Resolvers
老师,上面是我访问addUsers.html页面时报的错,启动项目的时候还会有一条警告信息:
ion$DefaultTemplateResolverConfiguration : Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
我已经解决了,解决方法是在配置资源拷贝插件那里在加一条
<include>**/*.html</include>
不过我奇怪的是,视频里还有老师的文档里都没有配置这一条,而且那个资源拷贝插件不是用来打包的吗?怎么会和资源的拦截扯上关系?