idea设置Springboot项目修改html后不须要重启

一、在pom中直接引入依赖spring

<dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <optional>true</optional>
</dependency>

二、设置如下两项(第一项如已设置直接设置第二项)app

  1) “File” -> “Settings” -> “Build,Execution,Deplyment” -> “Compiler”,选中打勾 “Make project automatically”(有的版本叫Build project automatically) 。ide

  2) 组合键:“Shift+Ctrl+Alt+/” ,选择 “Registry” ,选中打勾 “compiler.automake.allow.when.app.running” spring-boot

三、重启ideaui

四、若还不生效,则:idea

相关文章
相关标签/搜索