Skip to content

05.5) Spring Boot Dev Tools

choi jae ho edited this page Jun 1, 2021 · 1 revision

๐Ÿ“‹ 5. Spring Boot Dev Tools

  • ๋งค๋ฒˆ mvn clean pacakge; mvn spring-boot:run ํ•˜๊ธฐ ๋ถˆํŽธํ•จ.

  • ์ž๋™ํ™” ์‹œํ‚ฌ ํ•„์š”

  • ์ฝ”๋“œ๊ฐ€ ์—…๋ฐ์ดํŠธ ๋˜๋ฉด, ์ž๋™์ ์œผ๋กœ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์„ restartํ•ด์ค€๋‹ค.

  • Simply add the dependency to your POM file

<dependency>
 <groupId>org.springframework.boot</groupId>
 <artifactId>spring-boot-devtools</artifactId>
</dependency>
  • In Eclipse or STS, as soon as you change the classpath resources and save them, devtools will restart the server
  • In Intellij IDEA, you need to run Make Project to trigger a restart