일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
- GCP
- 구현
- 우선순위 큐
- JPA
- Reversing
- 스택
- 시뮬레이션
- java
- thymeleaf
- 백트래킹
- 맵
- 최단 경로
- 위상 정렬
- 그리디
- BFS
- 누적 합
- c++
- dfs
- 문자열
- 이분 탐색
- Spring
- 분할 정복
- error
- CVE
- web
- dynamic debugging
- 데이크스트라
- DP
- 재귀
- OS
- Today
- Total
hades
[JPA] not connection 본문
🚨 에러
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] due to: Unable to determine Dialect without JDBC metadata (please set 'jakarta.persistence.jdbc.url' for common cases or 'hibernate.dialect' when a custom Dialect implementation must be provided)
🔍 분석
hibernate는 JPA와 관련되어 있고, Unable to create requested service로 보아 요청을 할 수 없다고 한다.
깜빡하고 데이터베이스를 생성하지 않았다...
👊 해결
H2 데이터베이스를 사용하고 있었는데, /h2/bin으로 이동 후, h2.bat로 H2 설정 화면으로 가서 데이터베이스를 생성하면 된다.
다른 데이터베이스를 사용할 경우에도, 그 안에서 알맞은 데이터베이스를 생성하면 된다.
'🏃🏻♂️ 기본훈련 > Java' 카테고리의 다른 글
[모던 자바 인 액션] 동작 파라미터화 코드 전달하기 (0) | 2024.09.03 |
---|---|
[Java] 자바 기초 (0) | 2024.08.27 |
[JPA] 생명주기 일치 시 참조 변경의 위험성 (0) | 2024.08.19 |
[JPA] JPA 기초 (0) | 2024.08.02 |
[Java] 데이터베이스와 참조 (0) | 2024.07.27 |