How to locate Thymeleaf template from spring boot

前端 未结 5 1080
梦谈多话
梦谈多话 2021-01-02 23:56

I am trying to follow this tutorial at http://www.thymeleaf.org/doc/articles/springmvcaccessdata.html to learn how to send responses to Thymeleaf template. But I get this er

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-03 00:40

    I had the same problem with Spring boot + Gradle and these are the steps that I followed to resolve it:

    1. Print out the classpath

    2. Once I established that the resources folder was not being included in the classpath, I reloaded the application from disk:

    1. Gradle clean the project

提交回复
热议问题