무소의 뿔처럼
스프링부트) 에러기록 datasource, url 본문
에러
2022-08-16 09:58:55.588 INFO 9360 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2022-08-16 09:58:55.625 INFO 9360 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-08-16 09:58:55.642 ERROR 9360 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
방법1. 해결x
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfigu
방법2. 해결x
서버 포트 충돌 확인하기
방법3. 해결o
ojdbc6.jar 추가
------
이 전에도 서버 처음 구동 시 보였다.
같은 로고가 나와서 같은 문제로 보고 properties에 datasource url에 dbcp2나 hikari를 추가하여 왔다 갔다 함.
문제는 ojdbc6을 추가하고 나서 추후 조치를 취하지 못한 것.
-------
이 전에는 jsp나 spring 환경이 조성되어 있는 곳에 sts4를 실행시켰고,
java home에는 나도 모르게 추가한 ojdbc8이 있어서 다른 에러가 났던 것.
지금은 기본 환경만 되어있는 상태에 sts4를 설치해 처음 서버 구동시켜본 것.
'알아두기 > 에러' 카테고리의 다른 글
스프링부트) 에러기록 Consider defining a bean of type / Unsatisfied dependency expressed through (0) | 2022.09.01 |
---|---|
스프링부트) 에러페이지.. 왜 안나와.. (0) | 2022.08.24 |
스프링부트) 에러기록 For input string: _ List로 담아 보냈어~ (0) | 2022.08.19 |
boot)지원되지 않는 문자 집합(클래스 경로에 orai18n.jar 추가) (0) | 2022.08.15 |
json_No converter found for return value of type: (0) | 2022.07.15 |
Comments