-
카테고리
-
세부 분야
백엔드
-
해결 여부
해결됨
테이블을 만드는 테스트가 계속 실패합니다.
24.01.19 16:36 작성 24.01.19 17:48 수정 조회수 155
2
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).
이러한 오류만 반복이 되는데요
데이터 베이스 설정화면과
application.yml 입니다 - Spring과 jpa가 동일한 선상에 있으면 안된다는 글도 읽게되어서 고쳤지만 같은 오류가 발생하였습니다...
spring:
datasource:
url: jdbc:h2:tcp://localhost/~/jpashop
username: sa
password:
driver-class-name: org.h2.Driver
jpa:
hibernate:
ddl-auto: create
properties:
hibernate:
# show_sql: true
format_sql: true
logging.level:
org.hibernate.SQL: debug
org.hibernate.orm.jdbc.bind: trace
맨처음에는 포트번호가 같아서 접속이 불가능 하다고하여 포트번호도 바꾸고 이것저것을 다 해봤는데 안돼어서 문의 남깁니다..ㅜㅜ 도와주세요ㅜㅜ
답변을 작성해보세요.
2
OMG
2024.01.19
S SH
질문자2024.01.19
https://drive.google.com/file/d/1POj1GCQj1abS5doJaoxhbjCS0ToQ_V2f/view?usp=sharing
링크를 타고 들어오는 사용자 모두에게 공유하는 것으로 처리하여 올립니다! 도움주셔서 감사힙니다ㅜㅜ 테이블생성에서 부터 막혀서 너무 당황했는데 도움주셔서 감사해요ㅜ
테스트코드 자체가 실패합니다
단위 테스트조차 실행을 못합니다...ㅜㅜ
S SH
질문자2024.01.19
오류에서 계속 의미하는 의존성이 없다는게 그거였군요!!!ㅜㅜ 너무 감사합니다!! 실행되었어요!!
정말 감사합니다ㅜㅜ 덕분에 다음을 진행할 수 있게 되었어요!!!!
답변 1