IntelliJ์—์„œ Spring Boot dev tools ์‚ฌ์šฉํ•˜๊ธฐ

2022-07-07
๐Ÿ“‚ idea > intellij

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

Run configuration

Alt+U+R

  • 2021.02 ์ด์ „ ๋ฒ„์ „
    ๊ฐœ๋ฐœ์ค‘์ธ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜ ์„ ํƒ ํ›„ Build and run ๋ฉ”๋‰ด ์šฐ์ธก ์ƒ๋‹จ์˜ Modify options ํด๋ฆญ
    image context menu์—์„œ On 'Update' action, On frame deactivation ๋‘ ๊ฐœ ์†์„ฑ์—์„œ Update resources ์„ ํƒ ํ›„ [Apply]
  • 2021.02 ์ดํ›„ ๋ฒ„์ „
    ๊ฐœ๋ฐœ์ค‘์ธ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜ ์„ ํƒ ํ›„ Spring Boot ๋ฉ”๋‰ด > Running Application Update Policies
    image 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
Ubuntu ๋ช…๋ น์–ด ์ •๋ฆฌ
2022-10-20