application.yml 1.3 KB
Newer Older
楊慶堂's avatar
init  
楊慶堂 committed
1
spring:
楊慶堂's avatar
楊慶堂 committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
  devtools:
    restart:
      enabled: true
    livereload:
      enabled: true
  datasource:
    url: jdbc:sqlserver://10.32.86.125:443;databaseName=TestDB;sendStringParametersAsUnicode=false;
    driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
    username: archuser
    password: archuser
    jmx-enabled: true
  jpa:
    hibernate:
      naming:
        physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
        implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl
    properties:
      hibernate:
        show_sql: true
        format_sql: false
22
        dialect: org.ylhealth.ym.springtest.hibernate.SqlServerDialectWithNvarchar
楊慶堂's avatar
楊慶堂 committed
23
        globally_quoted_identifiers: true
楊慶堂's avatar
楊慶堂 committed
24 25 26 27
        cache.use_second_level_cache: true
        cache.use_query_cache: true
        cache.region.factory_class: org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory
        generate_statistics: true
楊慶堂's avatar
楊慶堂 committed
28 29 30 31 32 33 34 35 36 37 38
        temp:
          use_jdbc_metadata_defaults: false
          
logging:
  level:
    org:
      ylhealth.ym.springtest: DEBUG
      springframework: 
        orm.jpa.JpaTransactionManager: DEBUG # 設為 DEBUG 可查看 transaction
        transaction: DEBUG # 設為 DEBUG 可查看 transaction
        web.filter.CommonsRequestLoggingFilter: DEBUG