Commit cd5e8822 authored by 楊慶堂's avatar 楊慶堂

加上 jdbc log

parent 338e8e39
...@@ -54,6 +54,11 @@ ...@@ -54,6 +54,11 @@
<groupId>com.microsoft.sqlserver</groupId> <groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId> <artifactId>mssql-jdbc</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.googlecode.usc</groupId>
<artifactId>jdbcdslog</artifactId>
<version>1.0.6.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.aspectj/aspectjrt --> <!-- https://mvnrepository.com/artifact/org.aspectj/aspectjrt -->
<dependency> <dependency>
<groupId>org.aspectj</groupId> <groupId>org.aspectj</groupId>
......
...@@ -5,8 +5,10 @@ spring: ...@@ -5,8 +5,10 @@ spring:
livereload: livereload:
enabled: true enabled: true
datasource: datasource:
url: jdbc:sqlserver://10.32.86.125:443;databaseName=TestDB;sendStringParametersAsUnicode=false; url: jdbc:jdbcdslog:sqlserver://10.32.86.125:443;databaseName=H4UDBv4_ARCH_UAT;sendStringParametersAsUnicode=false;targetDriver=com.microsoft.sqlserver.jdbc.SQLServerDriver
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver driver-class-name: org.jdbcdslog.DriverLoggingProxy
#url: jdbc:sqlserver://10.32.86.125:443;databaseName=TestDB;sendStringParametersAsUnicode=false;
#driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
username: archuser username: archuser
password: archuser password: archuser
jmx-enabled: true jmx-enabled: true
...@@ -17,14 +19,14 @@ spring: ...@@ -17,14 +19,14 @@ spring:
implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl
properties: properties:
hibernate: hibernate:
show_sql: true show_sql: false
format_sql: false format_sql: false
dialect: org.ylhealth.ym.springtest.hibernate.SqlServerDialectWithNvarchar dialect: org.ylhealth.ym.springtest.hibernate.SqlServerDialectWithNvarchar
globally_quoted_identifiers: true globally_quoted_identifiers: true
cache.use_second_level_cache: true cache.use_second_level_cache: true
cache.use_query_cache: true cache.use_query_cache: true
cache.region.factory_class: org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory cache.region.factory_class: org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory
generate_statistics: true generate_statistics: false
temp: temp:
use_jdbc_metadata_defaults: false use_jdbc_metadata_defaults: false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment