테이블 DROP 후 다시 생성이 안 돼서 이틀을 꼬박 잡아먹고 지쳐있었다. 보통 application.yml 파일 문법의 문제라고 나와 있는데, 나는 도대체 어디가 틀린건지 찾을 수가 없었다...
그러던 중, 질문글의 해답을 보고 혹시...?하는 마음에 고쳐보자 바로 테이블이 생성되었다. 해결되어 다행!
jpa:
properties:
hibernate:
dialect: org.hibernate.dialect.H2Dialect
ddl-auto: create
이 부분을 다음과 같이 고쳐야 한다.
jpa:
hibernate:
ddl-auto: create
properties:
hibernate:
dialect: org.hibernate.dialect.H2Dialect
고치기 전
spring:
application:
name: hong-yeon
h2:
console:
enabled: true
path: /h2-console
datasource:
url: jdbc:h2:file:./local
driver-class-name: org.h2.Driver
username: sa
password: ""
jpa:
properties:
hibernate:
dialect: org.hibernate.dialect.H2Dialect
ddl-auto: create
servlet:
multipart:
max-file-size: 10MB
max-request-size: 10MB
server:
port: 8020
고친 후
spring:
application:
name: hong-yeon
h2:
console:
enabled: true
path: /h2-console
datasource:
url: jdbc:h2:file:./local
driver-class-name: org.h2.Driver
username: sa
password: ""
jpa:
hibernate:
ddl-auto: create
properties:
hibernate:
dialect: org.hibernate.dialect.H2Dialect
servlet:
multipart:
max-file-size: 10MB
max-request-size: 10MB
server:
port: 8020