Files
java-servers/servers/boe-server-basic/src/main/resources/application.yml
joshen 25e9043bea log
2025-01-17 21:07:38 +08:00

65 lines
1.4 KiB
YAML

# application.yml
spring:
profiles:
active: dev
application:
name: boe-server-basic
jackson:
time-zone: GMT+8
# default-property-inclusion: NON_NULL
servlet:
multipart:
max-file-size: 1024MB
max-request-size: 1024MB
# location:
encoding:
charset: UTF-8
enabled: true
force: true
redis:
lettuce:
pool:
max-active: 8
min-idle: 0
max-idle: 30
max-wait: 10000ms
shutdown-timeout: 100ms
jpa:
database: MYSQL
show-sql: true
properties:
hibernate:
naming_strategy: org.hibernate.cfg.EJB3NamingStrategy
dialect: org.hibernate.dialect.MySQL5InnoDBDialect
current_session_context_class: org.springframework.orm.hibernate5.SpringSessionContext
# allow_update_outside_transaction: true
# cache:
# use_second_level_cache: true
# region:
# factory_class: org.hibernate.cache.ehcache.EhCacheRegionFactory
mvc:
static-path-pattern: /cdn/**
server:
port: 9095
servlet:
session:
timeout: 30m
encoding:
charset: UTF-8
enabled: true
force: true
tomcat:
uri-encoding: UTF-8
ok:
http:
connect-timeout: 30
read-timeout: 30
write-timeout: 30
max-idle-connections: 200
keep-alive-duration: 300
# 设置logback.xml位置
logging:
config: classpath:log/logback-${spring.profiles.active}.xml