• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

안녕하세요 질문이 있습니다!!

21.01.25 18:48 작성 조회수 420

0

Test를 돌렸는데 자꾸 오류가 나서요 코드를 그대로 쳤는데 어디가 문제인지 잘 모르겠습니다ㅜㅜ

참고로 db는 h2말고 mysql을 쓰긴 했는데 jdbc랑 template을 test할 때는 오류가 나지 않았습니다!

2021-01-25 18:29:18.323 ERROR 232 --- [           main] j.LocalContainerEntityManagerFactoryBean : Failed to initialize JPA EntityManagerFactory: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is java.lang.IllegalArgumentException: Unrecognized legacy `hibernate.hbm2ddl.auto` value : `none//jpa°¡ ÀÚµ¿À¸·Î table ¸¸µå´Â°É ²ô±â`

답변 3

·

답변을 작성해보세요.

1

이세인님의 프로필

이세인

질문자

2021.01.25

아 application.properties 부분에 주석으로 설명을 달아놓는다고 한게 주석처리가 안되서 오류가 났었네요..... 감사합니다!!!!

0

네 잘 해결하셨습니다^^

0

안녕하세요. 세인님

application.properties를 확인해주세요!

spring.datasource.url=jdbc:h2:tcp://localhost/~/test
spring.datasource.driver-class-name=org.h2.Driver
spring.datasource.username=sa
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=none