WEB개발
[Spring Boot] 인텔리제이 Intellij 정적리소스 자동리로드
wooyeon06
2024. 1. 31. 16:05
1. build.gradle 파일에 devtools dependency를 추가
dependencies {
compileOnly("org.springframework.boot:spring-boot-devtools")
}
4. application.yml, application.properties 파일에 devtools 설정 추가
spring:
devtools:
livereload:
enabled: true
restart:
enabled: true
thymeleaf:
cache: false
spring.devtools.livereload.enabled=true
5. Build Project automatically
- Preferences 에서 Compirer에 Build Project automatically 를 체크
6. Allow auto-make
compiler.automake.allow.when.app.running를 체크
7. 다른 해결 방법
Settings에서 Gradle projects -> Build and run
IntelliJ IDEA로 변경