본문 바로가기

WEB개발

[Spring Boot] 인텔리제이 Intellij 정적리소스 자동리로드

 

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로 변경

 

 

'WEB개발' 카테고리의 다른 글

[Java] 참고  (0) 2024.02.29
[URL] request url  (0) 2024.02.29
[WEB기본] Gradle, Maven  (0) 2023.04.18
[SPRING] AOP  (0) 2023.03.08
[SPRING] BEAN  (0) 2023.03.06