When working on the frontend for Spring web apps, you will probably have come across an issue where you'll need to reload the app each time you change one line of frontend code. This is obviously very unproductive and can be solved with the following:
Add the following to the spring-boot-maven-plugin section in your pom.xml file:
<configuration>
<addResources>true</addResources>
</configuration>
Ensure that Thymeleaf cache is false with the following in your yaml file:
thymeleaf:
cache: false
Restart the app, and make some css changes. Upon refreshing the page you'll notice your changes without the need to restart the app.