개발일지 4번에서 설정한 환경설정대로 프로젝트를 생성한 후, 아무것도 추가하지 않은 상태에서 빌드를 한 후 실행시켰더니 오류가 발생했다.
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
o.s.b.d.LoggingFailureAnalysisReporter
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
을 추가해 주었다.
다행히 에러는 해결되었고 실행이 잘 되었지만 추천하지는 않는다.
그 이유는 개발일지 (6)번에서..
그래서 다른 방법이 없나 추가로 찾아보았는데 나온 방법이
application.properties에 다음을 추가해주는 것이다.
server.port=9090
에러가 발생한 이유는 개발을 위해 설치한 다른 프로그램 중 하나가 이미 8080포트를 사용하고 있어 자바 어플리케이션 실행 시 포트 충돌이 발생했기 때문이라고 한다.
[참고]
https://www.inflearn.com/questions/95532
https://www.inflearn.com/questions/236464
대장님 멋져