프로그래밍/spring
[타임리프] IntelliJ + Thymeleaf Live reload
혀끄니
2023. 7. 1. 09:00
728x90
- 설정파일(application.xml) 적용하기
- 아래 cache = false설정은 이미 생성된 결과를 서버에서 계속 보관할 것인지에 대한 설정
spring.thymeleaf.cache=false
- Configuration설정
- 인텔리제이 상단 RUN > Edit Configurations클릭
- 설정파일에서 On 'Update' action, On frame deactivation부분을 Update classes and resource로 변경

위 작업이 끝나면 서버 재기동없이 웹사이트에서 새로고침을 통해 바로바로 수정 되는것을 확인할 수 있다.
728x90