오류 save 부분에 insert가 안됨
구글링하다가 yml파일에
spring:
h2:
console:
enabled: true
jpa:
generate-ddl: true
hibernate:
ddl-auto: create-drop
database: H2
show-sql: true
open-in-view: false
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
query.in_clause_parameter_padding: true
hbm2ddl:
auto: create-drop
hbm2ddl.auto부분 추가했더니 잘됨
'언어 > spring' 카테고리의 다른 글
[Spring Boot] Connection is broken 에러 (0) | 2023.01.26 |
---|---|
[Spring Boot] Spring Data JPA & H2 테이블생성문제 (0) | 2023.01.25 |
[Spring Boot] Could not obtain connection to query metadata 오류 (0) | 2023.01.24 |
[Spring Boot] JPA를 사용해야 하는 이유 (0) | 2023.01.24 |
[Springboot]Failed to initialize JPA EntityManagerFactory, Error creating bean with name 'entityManagerFactory' defined in class path resource 해결 (0) | 2023.01.23 |