spring.application.name=Contract-Manager
spring.main.lazy-initialization=true
logging.level.root=INFO
logging.pattern.console=%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n
# spring.datasource.driver-class-name=
#u8.datasource.type=mssql
#u8.datasource.url=jdbc:sqlserver://10.84.209.251;databaseName=UFDATA_001_2017;encrypt=false;trustServerCertificate=true
#u8.datasource.username=sa
#u8.datasource.password=dqkl.com
#u8.datasource.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver
# datasource

# db server use domain, it need dns support.
#spring.datasource.hikari.jdbc-url=jdbc:mysql://db-server1.ecctrl.com/supplier_ms
#spring.datasource.username=ecep
#spring.datasource.password=ecep.623356561
#spring.datasource.type=com.zaxxer.hikari.HikariDataSource
#spring.datasource.hikari.driver-class-name=com.mysql.cj.jdbc.Driver
# jpa update
spring.jpa.hibernate.ddl-auto=none
#spring.jpa.hibernate.naming.implicit-strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
spring.jpa.show-sql=false
# spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
spring.data.jpa.repositories.enabled=true

spring.lifecycle.timeout-per-shutdown-phase=10s
# my.downloadsPath = C:\\Users\\SQQ\\Downloads\\
spring.data.redis.host=10.84.209.229
spring.data.redis.database=3

logging.level.org.hibernate.tool.hbm2ddl=DEBUG

# 在application.properties中添加
logging.level.org.springframework.boot.context.metrics.buffering=DEBUG
logging.level.com.ecep.contract.manager.SpringApp=DEBUG

# JSON序列化错误调试日志
logging.level.org.springframework.http.converter=DEBUG
logging.level.com.fasterxml.jackson=TRACE
logging.level.org.springframework.web.servlet.mvc.method.annotation=TRACE

# Redis缓存配置
spring.cache.type=redis
spring.cache.redis.time-to-live=1h
spring.cache.redis.key-prefix=cms::
spring.cache.redis.use-key-prefix=true
spring.cache.redis.cache-null-values=true



# 禁用默认的Whitelabel错误页面
server.error.whitelabel.enabled=false
# 设置错误处理路径，确保404等错误能被全局异常处理器捕获
spring.web.resources.add-mappings=true
