spring boot 버전 변경으로 data.sql 초기화가 안될 경우, 아래의 설정을 진행하면 됨
둘 중 하나만 해도 되는 경우도 있고, 둘 다 해야하는 경우도 있음
defer-datasource-initialization: true
initialization-mode: always
spring:
datasource:
url: jdbc:h2:tcp://localhost/~/test
username: sa
password:
driver-class-name: org.h2.Driver
initialization-mode: always
jpa:
hibernate:
ddl-auto: create-drop
properties:
hibernate:
format_sql: true
defer-datasource-initialization: true
sql:
init:
mode: always
'IT정보 > Error' 카테고리의 다른 글
Unsatisfied dependency expressed through constructor parameter 0 (0) | 2022.06.02 |
---|---|
[PostgreSQL] Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented 에러 (0) | 2022.05.25 |
PostgreSQL - 설치 시, There has been an error (0) | 2022.04.18 |
Uncaught ReferenceError: $ is not defined (0) | 2022.01.30 |
Uncaught SyntaxError: Unexpected identifier (0) | 2022.01.30 |