개발/Spring Boot

IntelliJ에서 자동 빌드 세팅 (Hot Reload)

홀든콜필드 2023. 1. 13. 01:44
728x90

 플러터에서는 핫리로드 기능을 기본적으로 탑재하고 있기 때문에 따로 설정할 필요가 없지만 인텔리제이는 환경 설정을 해줘야한다. 

0. 만약 pom.xml에 아래 groupId, artifactId, optional 이 없을 경우

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <scope>runtime</scope>
    <optional>true</optional>
</dependency>

pom.xml에 추가

 

1. File -> Compile-> Build project automatically  체크

 

 

2. 왼쪽 하단의 Advanced Settings 에서 Allow auto-make to start~~ 체크

완료.