Spring Boot를 run 할 때 멈추는 경우


저에게 없던 기존의 Spring Boot 의 프로젝트를 실행해보기 위해 run 을 눌렀는데 아무런 반응이 없습니다.
아래와 같은 메세지만 출력이 되고 더이상 진행되지 않습니다.



[main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Included patterns for restart : []
[main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Excluded patterns for restart : [/spring-boot-starter/target/classes/, /spring-boot-autoconfigure/target/classes/, /spring-boot-starter-[\w-]+/, /spring-boot/target/classes/, /spring-boot-actuator/target/classes/, /spring-boot-devtools/target/classes/]
[main] DEBUG org.springframework.boot.devtools.restart.ChangeableUrls - Matching URLs for reloading : [file:/Users/a1101085/IdeaProjects/dsp/out/production/classes/, file:/Users/a1101085/IdeaProjects/dsp/out/production/resources/]



원인을 찾기 위해 열심히 검색한 결과 application.yml 혹은 logback-spring.xml 파일이 잘못되있을 경우 에러(error) 메세지 없이 실행이 안된다고 합니다.
제 경우에는 로그백에서 로그를 쌓기위한 디렉토리(directory) 가 없었는데 이를 만들려고 했으나 권한이 없어 만들지 못하고 그대로 실행을 멈춘 경우였습니다.
그래서 해당 디렉토리를 만들고 권한을 주니 해결.




참고:
https://stackoverflow.com/questions/45179385/spring-boot-devtools-restart-does-not-automatically-work-with-spring-boot-1-5-4


+ Recent posts