IntelliJ IDEA에서 SpringBoot 자동 다시 로드
Re-run
를 클릭해야 하는 경우 어느 시점에서 지칠 수 있습니다.Please note, the
spring-dev-tools
provides this functionality out-of-the-box, but couldn't get to make it work for myself. So, in this post I'll show how I hacked my way around it.
첫 번째 단계는 태그 내의 프로젝트 pom.xml 파일에 Spring-dev-tools 종속성을 추가하는 것입니다.
NB: 이것이 작동하기 위한 핵심 구성 요소입니다.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
이로써 귀하의 IDE(IntelliJ)가 열려 있다고 생각합니다.
키보드 또는 메뉴 표시줄에서
cmd + ,
를 클릭하여 Mac용 단축키IntelliJ Menu >> Preferences
를 사용하여 IDE 환경 설정을 엽니다. 기본 설정 대화 상자가 열립니다.
왼쪽 창에서 빌드, 실행, 배포 옵션을 클릭하여 하위 메뉴를 표시합니다. 컴파일러를 클릭하고 오른쪽에서 자동으로 프로젝트 빌드 옵션을 선택하고 확인을 클릭합니다.

키보드의 Shift 키를 두 번 탭하여 IntelliJ 검색 대화 상자를 열고
registry
를 입력하여 레지스트리 설정을 엽니다.
compiler.automake.allow.when.app.running
옵션을 찾아 참인지 확인하십시오. 그런 다음 Spring-boot 애플리케이션을 다시 시작하고 즐기십시오. 이제 소스 코드가 변경되면 스프링이 애플리케이션을 다시 시작합니다. 도움이 되셨기를 바랍니다. 건배!
Reference
이 문제에 관하여(IntelliJ IDEA에서 SpringBoot 자동 다시 로드), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/imanuel/auto-reload-springboot-in-intellij-idea-1l65텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)