Files
contract-manager/server/src/main/resources/application.properties
2025-09-03 20:56:44 +08:00

47 lines
2.0 KiB
Properties

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.performance.enabled=true
# 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
# Redis缓存配置
spring.cache.type=redis
spring.cache.redis.time-to-live=6h
spring.cache.redis.key-prefix=contract_manager_
spring.cache.redis.use-key-prefix=true
spring.cache.redis.cache-null-values=false
# Redis序列化配置
spring.data.redis.serializer.key=org.springframework.data.redis.serializer.StringRedisSerializer
spring.data.redis.serializer.value=org.springframework.data.redis.serializer.GenericJackson2JsonRedisSerializer