haha 2 éve
szülő
commit
11523f1d26
1 módosított fájl, 10 hozzáadás és 2 törlés
  1. 10 2
      src/main/resources/application.yml

+ 10 - 2
src/main/resources/application.yml

@@ -25,14 +25,22 @@ spring:
     url: jdbc:mysql://106.14.123.58:3306/pay?useUnicode=true&characterEncoding=UTF-8&useSSL=false
     username: root
     password: NJU67seecoder
+    driverClassName: com.mysql.cj.jdbc.Driver
 #    url: jdbc:mysql://mooc.seecoder.cn/seecoder?useUnicode=true&characterEncoding=UTF-8&useSSL=false
 #    username: root
 #    password: NJU67mysql
   jpa:
-    database-platform: org.hibernate.dialect.MySQL57InnoDBDialect
     hibernate:
+      ddl-auto: update
       naming:
-        physical-strategy:  org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
+        implicit-strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
+        physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
+    database-platform: org.hibernate.dialect.MySQL57InnoDBDialect
+    #    show-sql: true
+    properties:
+      hibernate.enable_lazy_load_no_trans: true
+      #      hibernate.format_sql: true
+    open-in-view: true
 
 root:
   name: root