• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

08 소스 작성 후 실행을 할 때에 에러가 나네요.

22.06.28 00:21 작성 조회수 143

0

실행시에 이하와 같은 에러 메세지가 뜹니다.

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

Process finished with exit code 1

아마도 application.properties파일에 url을 설정해야하는거 아닌가 하는데

혹시 프로퍼티 파일 설정을 공유해 주실 수 있으신가요?

프로퍼티 설정문제가 아니라면 다른 해결책을 알려주실 수 있으신가요?

답변 1

답변을 작성해보세요.

0

매 강의 하단에
코드 스니펫을 제공하고 있습니다.

차근차근 하나씩
코드 스니펫을 참고하시면서
강의를 진행해보세요.

 

PS.

거의 대부분의 문제가
스프링 부트 버전에 의한 문제입니다.

강의와 같은 2.4.1 버전
또는 테스트를 마친 2.6.6 버전으로
학습해보세요