IntelliJ์์ Spring Boot dev tools ์ฌ์ฉํ๊ธฐ
2022-07-07
๐งถ #dev-tools #thymeleaf
IntelliJ Spring Boot์์ dev tools ์ค์ ํ ์๋ฒ restart ์์ด front ๊ฐ๋ฐํ๊ธฐ
dev tools ์์กด์ฑ ์ถ๊ฐ
- gradle
dependencies {
runtimeOnly 'org.springframework.boot:spring-boot-devtools'
}
- maven
1<dependency> 2 <groupId>org.springframework.boot</groupId> 3 <artifactId>spring-boot-devtools</artifactId> 4 <version>2.7.0</version> 5</dependency>
Set build automatically
Settings ๋ฉ๋ด : Ctrl+Alt+S
- 2021.02 ์ด์ ๋ฒ์
Build, Execution, Deployment > Complier
โ Build project automatically - 2021.02 ์ดํ ๋ฒ์
Advanced Settings
โ Allow auto-make to start even if developed application is currently running
โ How to check my version
IntelliJ fallback version ๋ฌธ์ ์์ด ์ฌ์ฉํ๊ธฐโ
Run configuration
Alt+U+R
- 2021.02 ์ด์ ๋ฒ์
๊ฐ๋ฐ์ค์ธ ์ดํ๋ฆฌ์ผ์ด์ ์ ํ ํ Build and run ๋ฉ๋ด ์ฐ์ธก ์๋จ์ Modify options ํด๋ฆญ
context menu์์ On 'Update' action, On frame deactivation ๋ ๊ฐ ์์ฑ์์ Update resources์ ํ ํ [Apply] - 2021.02 ์ดํ ๋ฒ์
๊ฐ๋ฐ์ค์ธ ์ดํ๋ฆฌ์ผ์ด์ ์ ํ ํ Spring Boot ๋ฉ๋ด > Running Application Update Policies
On 'Update' action: Update trigger file, On frame deactivation:Update resources์ ํ ํ [Apply]
์ค์ ์ดํ
ํ๋ก์ ํธ run/debug ์คํ > resources ํ์ ํ์ผ ์์ ํ๊ณ ๋์ 3~5์ด ๋ค์ ๋ธ๋ผ์ฐ์ ์๋ก๊ณ ์นจํ๋ฉด ์์ ๋ด์ฉ์ด ๋ฐ์๋์ด์์
The End
/end of IntelliJ์์ Spring Boot dev tools ์ฌ์ฉํ๊ธฐ
CONTENT LISTMERRI๏ผs DEVELOG
2022-10-20
2022-06-21
2022-06-08