적합한 드라이버 클래스를 결정하지 못했습니다 (SpringBoot 프레임 워크 기반).

오늘 springboot 프로젝트를 시작할 때 오류가보고되었습니다.

***************************
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).

이 오류를 보는 첫 번째 반응은 DAO 계층 데이터베이스의 문제를 생각할 것입니다.

그러나 반드시 그런 것은 아닙니다.

여러 번 설치했지만 쓸모가 없었습니다.

마지막으로 게시물을 읽고 yml 형식이 잘못되었다고 말했지만 내 것은 속성 파일
입니다. . .

그런 다음 경로가 일치하지 않는지 확인하기 위해 구성을 확인하기 시작했습니다.

약간의 주석을 달고 주석을 해제 한
결과 내 로깅 위치가 잘못 구성되어 있음을 발견하여
여기에 사진 설명 삽입
수정 한 후 다시 설치하면 정상적으로 시작되었습니다.

그러나 잘못된 경로로 경로를 변경하고 다시 설치하면 오류가 재현되지 않습니다.

신 스페셜 springboot! ! !

학교를 잃었습니까?

참조 :
https://www.cnblogs.com/wangshichang/p/11418818.html

추천

출처blog.csdn.net/Brave_heart4pzj/article/details/114404835