1.在pom中直接引入依賴
<dependency>
? ? ? ? <groupId>org.springframework.boot</groupId>
? ? ? ? <artifactId>spring-boot-devtools</artifactId>
? ? ? ? <optional>true</optional>
</dependency>
2. 設(shè)置以下兩項(xiàng)
?“File” -> “Settings” -> “Build,Execution,Deplyment” -> “Compiler”,選中打勾 “Build project automatically” 男翰。
?組合鍵:“Shift+Ctrl+Alt+/” 帜讲,選擇 “Registry” ,選中打勾 “compiler.automake.allow.when.app.running”?
注意:修改完js代碼后需要刷新瀏覽器