How to locate Thymeleaf template from spring boot

前端 未结 5 1081
梦谈多话
梦谈多话 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:23

    2 things here : 1. If you are using Maven, and I assume no customizations to folder names. Then the folder name should be src instead of source. 2. Once the folder has been renamed move your templates into 'templates' folder inside src/resources this should run fine.

提交回复
热议问题