r/SpringBoot • u/LouGarret76 • Mar 24 '26
Question Thymeleaf template storage. Best practive
Hi everyone,
By default, spring boot bundle the thymeleaf templates within the jar file. This mean that when you have to edit the html or the css file, you have to compile and repackage the whole app.
It feel like this defy the purpose of html, css in the first place.
I find myself moving more and more toward external html and css.
Is there any good reason not to do that by default?
5
Upvotes
View all comments
Show parent comment
3
u/MartinPeterBauer Mar 24 '26
Why not? It gives customer the posibility to customize their report and email templates without a deployment.
Thats not a bad thing