jpa 인강을 보던중 똑같이 따라했건만 h2 db의 table이 초기화가 되지 않는 현상을 발견
버전을 보니 내 버전은 1.4.200이고 강사님껀 더 낮은버전이였다.
그래서 검색을 해봤다.
IntegrationTest isolation fails in springboot 2.2.2.RELEASE (Error dopping tables after each SpringBootTest)
Our app is working in 2.0.4 release. After upgrade to 2.2.2.RELEASE we see integration tests failing. I suspect that there is some misconfiguration, and each integration test simply does not clean ...
stackoverflow.com
보니까 이미 깃헙에 패치가 다 되어있었다
근데 1.4.200버전엔 적용이 안되있어서 스택오버플로우에 나오는 깃헙주소로 들어가
따로 하이버네이트의 dialect 를 상속받은 커스텀 dialect 클래스를 만들어 프로퍼티에 추가시켜주니
잘작동하는걸 확인했다.
참고로 위의 스택오버플로우 주소에 있는 커스텀 dialect를 그대로 가져다쓰면 안되고 (전 안됬음)
깃헙에 수정된 소스를 보고 맞춰서 수정해줘야됨
'개발 > trouble' 카테고리의 다른 글
expected webhook response of admission.k8s.io/v1, Kind=AdmissionReview, got /, Kind= (0) | 2021.02.06 |
---|---|
Invalid use of BasicClientConnManager: connection still allocated. (0) | 2020.07.01 |
h2 The file is locked 문제 (0) | 2020.03.03 |
spring admin server 에러 문제 (0) | 2020.03.02 |
docker WARNING: IPv4 forwarding is disabled. Networking will not (0) | 2020.02.24 |