mirror of
https://github.com/RemainderTime/spring-boot-base-demo.git
synced 2026-03-03 10:30:45 +08:00
69 lines
1.5 KiB
YAML
69 lines
1.5 KiB
YAML
|
|
server:
|
|
port: 8089
|
|
shutdown: graceful
|
|
spring:
|
|
profiles:
|
|
active: dev
|
|
application:
|
|
name: xf-boot-base
|
|
servlet:
|
|
multipart:
|
|
max-file-size: 20MB
|
|
max-request-size: 20MB
|
|
jackson:
|
|
date-format: yyyy-MM-dd HH:mm:ss
|
|
time-zone: GMT+8
|
|
serialization:
|
|
WRITE_DATES_AS_TIMESTAMPS: false
|
|
FAIL_ON_EMPTY_BEANS: false
|
|
|
|
elasticsearch:
|
|
host: localhost
|
|
port: 9200
|
|
username: elastic
|
|
password: kVgA7eeLyNQKh_IyV*mW #window系统本地启动 es8.x 重置密码命令:.\elasticsearch-reset-password -u elastic
|
|
|
|
springdoc:
|
|
api-docs:
|
|
path: /v3/api-docs # 自定义 API 文档路径
|
|
swagger-ui:
|
|
path: /swagger-ui.html # 自定义 Swagger UI 路径
|
|
enabled: true
|
|
info:
|
|
title: 文撩 API 文档
|
|
description: 这是文撩平台的 API 文档
|
|
version: v1.0
|
|
|
|
mybatis-plus:
|
|
configuration:
|
|
map-underscore-to-camel-case: false
|
|
auto-mapping-behavior: full
|
|
#log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #开启SQL语句打印
|
|
mapper-locations: classpath*:mapper/**/*Mapper.xml
|
|
global-config:
|
|
# 逻辑删除配置
|
|
db-config:
|
|
update-strategy: IGNORED
|
|
# 删除前
|
|
logic-not-delete-value: 1
|
|
# 删除后
|
|
logic-delete-value: 0
|
|
|
|
# 参考文章 https://zhuanlan.zhihu.com/p/145359625
|
|
management:
|
|
health:
|
|
elasticsearch: #禁用健康检查
|
|
enabled: false
|
|
endpoints:
|
|
web:
|
|
exposure:
|
|
include: "health"
|
|
endpoint:
|
|
health:
|
|
show-details: always
|
|
|
|
# 日志设置
|
|
#logging:
|
|
# level:
|
|
# root: DEBUG |