데브툴 디팬던시 추가

<dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <scope>runtime</scope>
        <optional>true</optional>
</dependency>

설정 추가

# 데브툴의 자동 리로드 기능 활성화
spring:
  devtools:
    livereload:
      enabled: true
    # 사용하는 템플릿 엔진의 캐시기능 비활성화. 다른 엔진을 사용할 경우 다른 설정을 사용함
  mustache:
    cache: false

인텔리제이의 경우 별도 설정 추가

  1. Crtl + Shift + a 눌러 검색창 띄우기
  2. Registry 검색

  1. compiler.automake.allow.when.app.running 항목 체크
  2. Build project automatically 옵션 활성화

 

위 옵션이 잘 안먹을 때가 있는 거 같은데 그냥

 

위 처럼 자동 빌드를 저장키에 활성화 시켜서 사용하는게 편하다.

  1. 인터넷 사용기록 삭제

'프레임워크 > SpringBoot' 카테고리의 다른 글

unsupported media type 415 error  (0) 2021.06.03