Refreshing static content with Spring MVC and Boot

前端 未结 15 2199
迷失自我
迷失自我 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:45

    What I ended up using was Browsersync with grunt. browsersync and grunt watches your static resources on disk and updates the browser when you edit the files. It acts as a kind of proxy. This way you can see changes in UI immediately without building or restarting anything.

    Grunt, browsersync, spring boot and angularjs are configured for you if you use JHipster which I used to setup my project.

    Granted this requires a lot more tools than just an IDE and is a lot more complicated so I wouldn't recommend this for every project.

提交回复
热议问题