Skip to content

Commit 1e38573

Browse files
committed
chore: data.sql로 초기화 안되도록 설정
1 parent 1c638e3 commit 1e38573

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/resources/application-prod.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
88
# JPA
99
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
1010
spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect
11-
spring.jpa.hibernate.ddl-auto=create
11+
spring.jpa.hibernate.ddl-auto=update
1212

1313
# JPA query log
1414
spring.jpa.properties.hibernate.show_sql=true
@@ -17,8 +17,8 @@ logging.level.org.hibernate.type.descriptor.sql=trace
1717
spring.jpa.properties.hibernate.use_sql_comments=true
1818

1919
# sql (always)
20-
spring.jpa.defer-datasource-initialization=true
21-
spring.sql.init.mode=always
20+
spring.jpa.defer-datasource-initialization=false
21+
spring.sql.init.mode=never
2222

2323
# Swagger
2424
springdoc.api-docs.path=/api-docs

0 commit comments

Comments
 (0)