Refreshing static content with Spring MVC and Boot

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

    For Spring Boot 2+ with gradle Kotlin dsl:

    tasks.bootRun {
        sourceResources(sourceSets.getAt(SourceSet.MAIN_SOURCE_SET_NAME))
    }
    

    thanks to @briskr's answer for the gradle dsl version :)

提交回复
热议问题