spring-boot-devtools
生活随笔
收集整理的這篇文章主要介紹了
spring-boot-devtools
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
依賴
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-devtools</artifactId><optional>true</optional> </dependency> 復制代碼方式1:手動觸發Triggering a restart
Build -> Build Project點擊會重啟application
方式2:idea配置自動觸發
- Preferences | Build, Execution, Deployment | Compiler,勾選Build project automatically
- cmd + shift + option + ?選擇Registry...,勾選compiler.automake.allow.when.app.running
- 重啟idea
- 瀏覽器添加LiveReload插件,配合使用效果更好
- Excluding Resources,在application.yml中配置spring.devtools.restart.exclude=static/**,public/**,即更改靜態文件也重啟application
總結
以上是生活随笔為你收集整理的spring-boot-devtools的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: React Native实现一个带筛选功
- 下一篇: IMYAOPTableView 源码学