1、启动项目,访问templates文件夹下的login.html页面,报如下错误:



控制台报错信息:org.thymeleaf.exceptions.TemplateInputException: Error resolving
template "login", template might not exist or might not be accessible by any of
the configured Template Resolvers。。。

2、问题解决:报错之后在项目中一顿排查,发现是我的pom.xml中的配置导致的,删除如下配置即可:

<resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.xml</include>
                </includes>
            </resource>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**.*</include>
                </includes>
            </resource>
        </resources>

友情链接
KaDraw流程图
API参考文档
OK工具箱
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:ixiaoyang8@qq.com
QQ群:637538335
关注微信