참고 사이트
https://dololak.tistory.com/575
https://drsggg.tistory.com/365
https://www.jetbrains.com/help/idea/spring-boot.html#application-update-policies
Intellij 버전 2021.3.1 (Ultimate Edition)
1) Pom.xml 추가
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
application 작성
.properties
spring.devtools.livereload.enabled=true
spring.thymeleaf.cache=false
.yml은 아래껄로
spring:
devtools:
livereload:
enabled: true
thymeleaf:
cache: false
서버설정
- Modify options
Update classes and resources 선택
마지막으로 Intellij 종료후 다시 키면된다
반응형