Is it possible to configure the Thymeleaf / Spring application to serve templates and static resources from the same directory (either using configuration or using custom permission)?
I use Thymeleaf only to localize the templates, and the rest of the page logic is handled by Angular JS. I have work with templates and static content, but it will be a big project, and I want to use the recommended structure, where all files related to one page are in the same “package”.
I am looking for a structure that looks like this:
└── src └── main └── java └── HelloController.java └── LoginController.java └──resources └──templates └──hello └──hello.html (dynamic thymeleaf template) └──hello.js (static resource) └──hello.css (static resource) └──login └──login.html └──login.js └──login.css └──webapp └──WEB-INF └──web.xml
Thanks for any suggestions.
source share