Spring boot app debug static file reload

已回答

Hi, I'm using IntelliJ with a simple spring boot app (no web facet), and it seems that when I run with intellij, the static files do not reload unless I do a "rebuild project". If I just use maven on the command line with "mvn spring-boot:run", then the static files reload fine whenever they are edited. How can I make intellij reload the static files automatically?

0
Avatar
Permanently deleted user

Ok those features looks pretty cool. By the way, the "Spring" run target currently works for spring boot projects, except the static files don't reload. Actually, I found a workaround, which is to just use a maven run target, and then it works the same as if I just did "mvn spring-boot:run"

0
Avatar
Permanently deleted user

Hmm - that workaround doesn't work for me when I do this from IDEA, however when I start the app via mvn spring-boot:run from the command line, it all works fine. IDEA 2016.

0

Nick, please make sure the folder containing the static resources is marked as "Resources Root".

0
Avatar
Permanently deleted user

Is that a Spring Boot setting, Maven Setting or IDEA setting ?

 

In IDEA 2016.1, all I can see is a "Content Root", or I can mark a folder as "Resources" however I can't see how to mark it as a "Resources Root".

0

Yes, please mark it as "Resources".

0
Avatar
Permanently deleted user

Yes. Definitely marked as Resources, and still not working.

0

Could you please provide a (minimal) sample project in our issue tracker? https://youtrack.jetbrains.com/issues/IDEA Thanks.

0
Avatar
Permanently deleted user

Thanks @yann Cebron. Created and attached here https://youtrack.jetbrains.com/issue/IDEA-153868

0

Hello Nick Pellow, can you fix that ? im now facing the same problem …

0

Hello,

Have you tried suggestion from YouTrack issue? Mentioned above? If it still doesn't work please provide sample project example in comments to it.

0

请先登录再写评论。