demo01/src/main/resources/application.yml

71 lines
2.0 KiB
YAML

management:
endpoint:
health:
show-details: always
endpoints:
web:
exposure:
include: '*'
server:
port: 7055
servlet:
context-path: /demo01
encoding:
charset: UTF-8
enabled: true
force: true
force-request: true
force-response: true
session:
cookie:
http-only: true
secure: false
timeout: 300
tracking-modes: COOKIE
shutdown: graceful
ssl:
enabled: false
spring:
application:
name: demo01
cloud:
consul:
host: host.docker.internal
port: 8500
discovery:
register-health-check: true
healthCheckPath: ${server.servlet.context-path}/actuator/health
healthCheckInterval: 15s
metadata:
metrics: ${server.servlet.context-path}/actuator/prometheus
springboot: true
isv: risesoft
tags: test,y9
datasource:
driverClassName: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://host.docker.internal:3306/y9_public?serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&useUnicode=true&characterEncoding=utf-8&rewriteBatchedStatements=true&useCompression=true&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: '12345678'
hikari:
maximumPoolSize: 20
minimumIdle: 1
jpa:
properties:
hibernate:
dialect: org.hibernate.dialect.MySQL8Dialect
hbm2ddl:
auto: update
jdbc:
batchSize: 100
showSql: true
generate-ddl: true
open-in-view: false
main:
allow-bean-definition-overriding: true
allow-circular-references: false
docker:
compose:
enabled: false
#file: docker-dev.yml