Skip to content

Commit

Permalink
#2250 change hibernate property(connection.release_mode) to after_tra…
Browse files Browse the repository at this point in the history
…nsaction
  • Loading branch information
ufoscw authored and alchan-lee committed Jul 2, 2019
1 parent d70b540 commit 6086665
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions discovery-server/src/main/resources/application.yaml
Expand Up @@ -314,6 +314,8 @@ spring:
auto: update
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
naming_strategy: org.hibernate.cfg.ImprovedNamingStrategy
connection:
release_mode: after_transaction

---
spring:
Expand Down
3 changes: 3 additions & 0 deletions discovery-server/src/main/resources/logback-console.xml
Expand Up @@ -33,6 +33,9 @@
<!-- show hibernate sql -->
<logger name="org.hibernate.SQL" level="info"/>

<!-- hide warn HibernateJpaDialect, because release_mode : after_transaction -->
<logger name="org.springframework.orm.jpa.vendor" level="error"/>

<!-- show bound hibernate parameters with trace -->
<logger name="org.hibernate.type" level="info"/>

Expand Down

0 comments on commit 6086665

Please sign in to comment.