스프링부트

[스프링부트] 프론트엔드(Thymeleaf) 수정 시 화면 자동 갱신

dreamstalker 2024. 8. 5. 12:00

작업 환경: InelliJ Community, Thymeleaf사용

아래 순서대로 진행해보자.

 

  • 메뉴 : File> settings> Build, Execution, Deployment>>compiler>>
    compiler: Build project automatically 체크
  • 메뉴 : File> settings> Advanced Settings> 
    Allow auto-make to start even if developed application is currently running 체크
  • 메뉴 : File> settings> Build Tools> Gradle> 
    Build and Run:
      Bulid and run using: IntelliJ IDEA
      Run tests using: IntelliJ IDEA
  • 크롬 브라우저> 확장 프로그램 > LiveReload++ 설치

    html 파일 수정 후 저장하면 4~5초 후 수정사항 적용된 화면을 확인 할 수 있다.