반응형

spring을 사용하면서 재시작 버튼을 누르는게 너무 귀찮다...

 

그래서 찾아봤더니 Spring 재시작 버튼을 안눌러도 자동으로 재시작 해주는 기능을 찾았다.

 


 

일단 첫번째로 지금 쓰고 있는 프로젝트에

 

build.gralde - dependencies에 아래 코드를 추가해준다

developmentOnly 'org.springframework.boot:spring-boot-devtools'

 

 

두번째로는 Build, Exeution, Deployment > Compiler > Build project autiomaically 체크

 

세번째로Advanced Settings > Allowauto-make to start even if developed application is currently running 체크

 

이렇게 설정하면 Spring 재시작 버튼을 누르지 않아도 자동으로 재시작을 해주지만, 바로 반영은 안되고 5~6초 ? 정도 걸리는것 같다

반응형

'WEB > SPRING' 카테고리의 다른 글

Spring #5 MVC와 템플릿 엔진  (0) 2024.07.16
Spring #4 정적 컨텐츠  (0) 2024.07.16
Spring #3 View 환경설정  (0) 2024.07.16
Spring #2 라이브러리 살펴보기!  (0) 2024.07.13
Spring #1 Spring 프로젝트 생성  (0) 2024.07.13

+ Recent posts