๊ด€๋ฆฌ ๋ฉ”๋‰ด

Coding Planet

Spring Boot Dev Tools - ํ™˜๊ฒฝ์„ค์ •ํ•˜๊ธฐ(IntelliJ) ๋ณธ๋ฌธ

๐ŸŒฑSPRING

Spring Boot Dev Tools - ํ™˜๊ฒฝ์„ค์ •ํ•˜๊ธฐ(IntelliJ)

jhj.sharon 2023. 8. 18. 17:47
๋ฐ˜์‘ํ˜•
์Šคํ”„๋ง๋ถ€ํŠธ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜ ๊ฐœ๋ฐœ ๊ณผ์ •์—์„œ ๋งŒ์•ฝ ์†Œ์Šค ์ฝ”๋“œ๋ฅผ ์ˆ˜์ •ํ•œ๋‹ค๋ฉด ์ด ์ˆ˜์ •๋œ ์ƒํ™ฉ์„ ์ ์šฉํ•˜๊ธฐ ์œ„ํ•ด ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ๋‹ค์‹œ ์‹คํ–‰ํ•ด์•ผํ•œ๋‹ค. Spring Boot Dev Tools๋Š” ์†Œ์Šค ์ฝ”๋“œ๊ฐ€ ์ˆ˜์ •๋  ๊ฒฝ์šฐ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ์ž๋™์œผ๋กœ ๋‹ค์‹œ ์‹œ์ž‘ํ•ด์ค€๋‹ค.

 

| Spring Boot Dev Tools ํ™˜๊ฒฝ์„ค์ •

  • pom.xml์— ์•„๋ž˜์™€ ๊ฐ™์ด dependency๋ฅผ ์ถ”๊ฐ€ํ•˜๋ฉด ๋œ๋‹ค. ๊ทธ ์™ธ์— ๋‹ค๋ฅธ ์ถ”๊ฐ€์ ์ธ ์ฝ”๋“œ๋Š” ํ•„์š”์—†๋‹ค.
  • ๋‹ค๋งŒ IDE๋กœ IntelliJ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒฝ์šฐ ์ถ”๊ฐ€์ ์ธ ํ™˜๊ฒฝ ์„ค์ •์ด ํ•„์š”ํ•˜๋‹ค.
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
</dependency>

 

 

| Spring Boot Dev Tools ํ™˜๊ฒฝ์„ค์ •

  • IntelliJ Community์˜ ๊ฒฝ์šฐ DevTools๋ฅผ ๊ธฐ๋ณธ์œผ๋กœ ์ œ๊ณตํ•˜์ง€๋Š” ์•Š๋Š”๋‹ค.
  • Preference > Build, Excution, Deployment > Complier๋กœ ์ด๋™ํ•œ๋‹ค (window์˜ ๊ฒฝ์šฐ file > settings)
  • Build project automatically๋ฅผ ์ฒดํฌํ•˜๋ผ

  • preference > Advanced Settings  > Allow to auto-make... ์ฒดํฌ

 

| Spring Boot Dev Tools ์‹คํ–‰ํ•˜๊ธฐ

  • ์ž๋™์œผ๋กœ ์žฌ์‹œ์ž‘๋˜๋Š” ๋ชจ์Šต์„ ๋ณผ ์ˆ˜ ์žˆ๋‹ค.
  • url ๋ณ€๊ฒฝ ํ›„ ํ™•์ธํ•ด๋ณด๋‹ˆ ์ œ๋Œ€๋กœ ์‹คํ–‰๋œ๋‹ค.

 

๋ฐ˜์‘ํ˜•
Comments