Hi. I have this simple Spring Boot app:
https://github.com/Eccenux/HelloSpringBoot
Most of this is generated by the SB creator. The things I added are
mostly a HomeController [hc] and some templates e.g. [home].
Now the problem is that even though I enabled *Compile on Save* and
*Copy Static Resources on Save*, I cannot seem to get it working. Is
this a known problem with Spring Boot 4 or something? Was this fixed
recently in NB? I’m currently on NB 28. Is there something, some option,
I need to change in NetBeans? Something to adjust in Spring configs?
I checked it like this:
1. Change my css in NetBeans:
`HelloSpringBoot\src\main\resources\static\css\main.css`
2. Compare it with target:
in zip:
`HelloSpringBoot\target\hellospring-0.0.1.war\WEB-INF\classes\static\css\main.css`
and direct: `HelloSpringBoot\target\classes\static\css\main.css`
→ The files are different.
I do develop a few much more complex applications, with a more complex
backend and frontend, based on previous Spring versions, and reloading
resources seems to work just fine for them. That’s why I’m wondering if
there is some problem with the integration with the new Spring or Spring
Boot.
Cheers,
Maciej Nux
[hc] =
https://github.com/Eccenux/HelloSpringBoot/blob/main/src/main/java/pl/mol/hellospring/web/HomeController.java
[home] =
https://github.com/Eccenux/HelloSpringBoot/blob/main/src/main/resources/templates/home.html