Refreshing static content with Spring MVC and Boot

前端 未结 15 2185
迷失自我
迷失自我 2020-11-28 07:02

I\'m evaluating Spring MVC & Boot and AngularJs for building web applications. I\'ve run into the problem that when I make modifications to my static content (html, js,

15条回答
  •  孤独总比滥情好
    2020-11-28 07:33

    A recap of the original problem

    I've run into the problem that when I make modifications to my static content (html, js, css), I have to restart the application every time

    I had the same problem and finally solved it by adding

    
        true
    
    

    to spring-boot-maven-plugin in the pom.xml I got confused by this spring-boot-devtools thing, but it had no effect whatever I did.

    My static content is stored in "src/main/resources/public" folder.

    Your path is just fine. src/main/resources/static is also fine.

提交回复
热议问题