[springboot] 예외 Cannot determine embedded database driver class for database type NONE 해결 시작

802 단어 버그 레코드
문제 설명:
springboot 프로젝트를 시작할 때 시작에 실패했습니다. 오류 메시지:
***************************
APPLICATION FAILED TO START
***************************

Description:

Cannot determine embedded database driver class for database type NONE

Action:

If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).

오류 원인:
데이터베이스 관련 의존 (예를 들어 mybatis 같은 프레임워크) 을 가져왔지만 전역 프로필에 데이터베이스 관련 정보를 설정하지 않았습니다.
문제 해결:
두 가지 방안: 1 데이터베이스 관련 의존이 필요한지 검사하고 필요하지 않으면 삭제한다.
2 글로벌 구성 파일에서 데이터베이스 정보를 구성합니다.
spring.datasource.driverClassName=
spring.datasource.url=
spring.datasource.username=
spring.datasource.password=

좋은 웹페이지 즐겨찾기