demo01/src/main/resources/application.yml

58 lines
1.6 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
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
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-compose.yaml