무소의 뿔처럼

스프링부트) 에러기록 datasource, url 본문

알아두기/에러

스프링부트) 에러기록 datasource, url

값을변경 2022. 8. 16. 10:16

에러

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를 설치해 처음 서버 구동시켜본 것.

Comments