wanghongkai 5 år sedan
förälder
incheckning
da5d8481b6
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      src/main/resources/application.yml

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

@@ -13,7 +13,8 @@ spring:
         physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
         physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
     database-platform: org.hibernate.dialect.MySQL57InnoDBDialect
     database-platform: org.hibernate.dialect.MySQL57InnoDBDialect
 #    show-sql: true
 #    show-sql: true
-#    properties:
+    properties:
+      hibernate.enable_lazy_load_no_trans: true
 #      hibernate.format_sql: true
 #      hibernate.format_sql: true
   security:
   security:
     user:
     user: