정적자원 서버재시작없이
2023. 12. 20. 14:47ㆍ기타
1) dependencies 추가
build.gradle
|
dependencies { |
|
implementation 'org.springframework.boot:spring-boot-devtools' |
|
} |
2) Run/Debug Configurations 에서 설정 편집
2-1) 상단에 Application 에서 Edit Configurations 를 클릭하여 “Run/Debug Configurations” 설정 창을 띄웁니다.
2-2) 좌측에서 Spring Boot - Application 선택
2-3) Build and run 항목에서 Modify options 클릭하여 아래 옵션들을 추가
2-4) On ‘Update’ action: Update classed and resources 추가
2-5) On frame deactivation: Update classes and resources 추가
3) Preferences - Build, Execution, Deployment - Compiler 설정
Build project automatically 체크
4) application.yml 설정
application.yml
|
spring: |
|
devtools: |
|
livereload: |
|
enabled: true |
|
thymeleaf: |
|
cache: false |
|
restart: |
|
enabled: false |