39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
server:
|
|
compression:
|
|
enabled: true
|
|
mime-types: application/json,application/xml,text/html,text/xml,text/plain
|
|
min-response-size: 2048
|
|
spring:
|
|
resources:
|
|
static-locations: classpath:/templates/,classpath:/static/
|
|
jpa:
|
|
database: mysql
|
|
database-platform: cn.qutaojing.common.jpa.CustomMysqlDialect
|
|
generate-ddl: false
|
|
hibernate:
|
|
# 将hibernate的统计打开来看看到底是不是被缓存了
|
|
generate_statistics: true
|
|
order_inserts: true
|
|
order_updates: true
|
|
jdbc:
|
|
batch_size: 200
|
|
batch_versioned_data: true
|
|
ddl-auto: none
|
|
use-new-id-generator-mappings: false
|
|
naming:
|
|
physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
|
|
# 所有属性参考 https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
|
|
servlet:
|
|
multipart:
|
|
max-file-size: 20MB
|
|
max-request-size: 20MB
|
|
|
|
opentracing:
|
|
jaeger:
|
|
enabled: false
|
|
|
|
logging:
|
|
level:
|
|
org.springframework.data.mongodb.core.MongoTemplate: DEBUG
|
|
#org.springframework.orm.jpa: DEBUG
|
|
#org.springframework.transaction: DEBUG |