demo01/src/main/resources/application.yml

71 lines
2.0 KiB
YAML
Raw Normal View History

2023-10-08 19:49:56 +08:00
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
2023-10-24 19:42:29 +08:00
cloud:
consul:
host: localhost
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
2023-10-08 19:49:56 +08:00
datasource:
driverClassName: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/y9_public?serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&useUnicode=true&characterEncoding=utf-8&rewriteBatchedStatements=true&useCompression=true&useSSL=false&allowPublicKeyRetrieval=true
username: root
2023-10-17 19:48:34 +08:00
password: '12345678'
2023-10-24 19:42:29 +08:00
hikari:
2023-10-08 19:49:56 +08:00
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
2023-10-20 11:44:43 +08:00
#file: docker-dev.yml