suyeoniii
수바리의 코딩일기
suyeoniii
전체 방문자
오늘
어제
  • 분류 전체보기
    • 🪓 삽질일기
    • 🔙 Backend
      • 🟢 Node.js
      • 🐈‍⬛ NestJS
      • 🌿 Springboot
      • 🗄️ Database
    • 🌸 Frontend
      • 🌐 React.js
      • 💚 Vue.js
      • 🤖 Android
    • 🕹️ 알고리즘
      • 💯 코딩테스트
    • 🔠 프로그래밍 언어
      • 💛 Javascript
      • 💙 Typescript
    • 🚀 배포
    • 🐱 Git
    • etc.
      • 개발환경
      • 오픈 API
      • 개념정리
      • 커뮤니티
    • AI
      • 생성형 AI
    • 회고

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • 회고
  • ec2
  • AWS
  • springboot
  • vue
  • 알고리즘
  • android
  • nodejs
  • html
  • MySQL
  • Spring Boot
  • node
  • javascript
  • Git
  • C++
  • java
  • MAC
  • ubuntu
  • 백준
  • node.js

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
suyeoniii

수바리의 코딩일기

[Spring Boot] Error creating bean with name 'entityManagerFactory' defined in class path resource
🪓 삽질일기

[Spring Boot] Error creating bean with name 'entityManagerFactory' defined in class path resource

2022. 8. 19. 21:00
반응형

Spring Boot, Kotlin, JPA, H2를 이용해서 API 테스트코드를 작성중이었다.

 

 

Error creating bean with name 'entityManagerFactory' defined in class path resource

 

Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]

 

이렇게 에러가 났다...!!

찾아보니 application.yml에서 H2 url에 오타가 있었다...머쓱😅

H2연결할때 JDBC URL에 입력한 url을 application.yml에 올바르게 입력해주니 H2연결이 잘 되었고, 오류가 해결되었다!

같은 문제를 겪었다면 H2연결이 잘되었는지 확인해보자😁

 

H2 console
테스트 통과~

반응형
저작자표시 (새창열림)

'🪓 삽질일기' 카테고리의 다른 글

[Node.js][Typescript] node_modules/@types/express-serve-static-core/index.d.ts:745:13 - error TS1005: ';' expected.  (0) 2022.12.09
[Spring Boot] No tests found for given includes: 에러  (0) 2022.08.20
[EC2][Ubuntu] E212: Can't open file for writing  (0) 2022.05.12
[AWS EC2] WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!  (0) 2022.04.18
[Ubuntu] EACCES: permission denied, scandir '/root/.npm/_logs'  (0) 2022.04.08
    '🪓 삽질일기' 카테고리의 다른 글
    • [Node.js][Typescript] node_modules/@types/express-serve-static-core/index.d.ts:745:13 - error TS1005: ';' expected.
    • [Spring Boot] No tests found for given includes: 에러
    • [EC2][Ubuntu] E212: Can't open file for writing
    • [AWS EC2] WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
    suyeoniii
    suyeoniii
    개발관련 문제 해결, 공부한 내용 등을 업로드합니다.

    티스토리툴바