본문 바로가기
Spring Boot

[Spring] 재시작 없이 정적 리소스 갱신하기

by palbokdev 2021. 10. 20.
spring.thymeleaf.cache=false

 

view (html) 수정 사항이 생겼을때 앱을 재시작해도 되지만, build를 통해 정적 리소스만 갱신 할 수 있다.

application.properties에 위 설정을 해주면 된다. (yml은 아래 설정)

 

spring:
  thymeleaf:
	cache: false

 

ref : https://stackoverflow.com/questions/27710924/spring-boot-publish-thymeleaf-template-without-restarting-the-server