Browse Source

fix: jpa数据库初始化配置

jay 1 năm trước cách đây
mục cha
commit
58998298a3
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      iot-starter/src/main/resources/application.yml

+ 7 - 1
iot-starter/src/main/resources/application.yml

@@ -10,7 +10,13 @@ spring:
   profiles:
     active: postgres
 
-
+  jpa:
+    show-sql: true
+    hibernate:
+      ddl-auto: update
+    properties:
+      hibernate:
+        format_sql: true
 
 # https://baomidou.com/config/
 mybatis-plus: