springboot启动时报WARN的警告,
报错内容:Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)

启动之后,执行访问报错。

上网找了解决方案

<resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                    <!--加载模板文件-->
                    <include>**/*.html</include>
                    <!--加载静态文件-->
                    <include>/static/</include>
                </includes>
                <filtering>false</filtering>
            </resource>
View Code

相关文章:

  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
  • 2022-02-15
  • 2021-11-04
  • 2022-02-12
  • 2021-11-30
  • 2022-02-11
猜你喜欢
  • 2022-12-23
  • 2022-01-08
  • 2021-05-30
  • 2021-06-16
  • 2021-12-12
  • 2022-01-10
  • 2022-12-23
相关资源
相似解决方案