2025-12-05 15:34:02 +08:00
|
|
|
|
# ================== Server ==================
|
|
|
|
|
|
server:
|
|
|
|
|
|
port: 8188
|
|
|
|
|
|
servlet:
|
|
|
|
|
|
context-path: /urban-lifeline/workcase
|
|
|
|
|
|
|
|
|
|
|
|
# ================== Auth ====================
|
|
|
|
|
|
urban-lifeline:
|
|
|
|
|
|
auth:
|
|
|
|
|
|
enabled: true
|
|
|
|
|
|
whitelist:
|
|
|
|
|
|
- /swagger-ui/**
|
|
|
|
|
|
- /swagger-ui.html
|
|
|
|
|
|
- /v3/api-docs/**
|
|
|
|
|
|
- /webjars/**
|
|
|
|
|
|
- /favicon.ico
|
|
|
|
|
|
- /error
|
|
|
|
|
|
- /actuator/health
|
|
|
|
|
|
- /actuator/info
|
|
|
|
|
|
|
2025-12-05 18:56:56 +08:00
|
|
|
|
security:
|
|
|
|
|
|
aes:
|
|
|
|
|
|
secret-key: 1234567890qwer
|
|
|
|
|
|
|
2025-12-05 15:34:02 +08:00
|
|
|
|
# ================== Spring ==================
|
|
|
|
|
|
spring:
|
|
|
|
|
|
application:
|
|
|
|
|
|
name: workcase-service
|
|
|
|
|
|
|
2025-12-05 18:56:56 +08:00
|
|
|
|
# ================== Spring Cloud Nacos ==================
|
|
|
|
|
|
cloud:
|
|
|
|
|
|
nacos:
|
|
|
|
|
|
discovery:
|
|
|
|
|
|
server-addr: 127.0.0.1:8848
|
|
|
|
|
|
namespace: dev
|
|
|
|
|
|
group: DEFAULT_GROUP
|
|
|
|
|
|
|
2025-12-05 15:34:02 +08:00
|
|
|
|
# ================== DataSource ==================
|
|
|
|
|
|
datasource:
|
|
|
|
|
|
url: jdbc:postgresql://127.0.0.1:5432/urban_lifeline
|
|
|
|
|
|
username: postgres
|
|
|
|
|
|
password: postgres
|
|
|
|
|
|
driver-class-name: org.postgresql.Driver
|
|
|
|
|
|
|
|
|
|
|
|
# ================== Redis ==================
|
|
|
|
|
|
data:
|
|
|
|
|
|
redis:
|
|
|
|
|
|
host: 127.0.0.1 # 如果是 docker 跑的 redis,按实际 host / 端口改
|
|
|
|
|
|
port: 6379
|
|
|
|
|
|
database: 0
|
|
|
|
|
|
password: 123456 # 如果有密码就填上,没密码可以去掉这一行
|
|
|
|
|
|
|
|
|
|
|
|
# ================== SpringDoc ==================
|
|
|
|
|
|
springdoc:
|
|
|
|
|
|
api-docs:
|
|
|
|
|
|
enabled: true
|
|
|
|
|
|
path: /v3/api-docs
|
|
|
|
|
|
swagger-ui:
|
|
|
|
|
|
enabled: true
|
|
|
|
|
|
path: /swagger-ui.html
|
|
|
|
|
|
group-configs:
|
|
|
|
|
|
- group: 'default'
|
|
|
|
|
|
display-name: '工单服务 API'
|
|
|
|
|
|
paths-to-match: '/**'
|
|
|
|
|
|
|
|
|
|
|
|
# ================== Dubbo + Nacos ==================
|
|
|
|
|
|
dubbo:
|
|
|
|
|
|
application:
|
|
|
|
|
|
name: urban-lifeline-workcase
|
|
|
|
|
|
qos-enable: false
|
|
|
|
|
|
protocol:
|
|
|
|
|
|
name: dubbo
|
|
|
|
|
|
port: -1
|
|
|
|
|
|
registry:
|
|
|
|
|
|
address: nacos://127.0.0.1:8848
|
|
|
|
|
|
scan:
|
|
|
|
|
|
base-packages: org.xyzh.workcase.service.impl
|
|
|
|
|
|
|
|
|
|
|
|
# ================== MyBatis ==================
|
|
|
|
|
|
mybatis-plus:
|
|
|
|
|
|
mapper-locations: classpath:mapper/**/*.xml
|
|
|
|
|
|
type-aliases-package: org.xyzh.common.dto, org.xyzh.api
|
|
|
|
|
|
|
|
|
|
|
|
# ================== Logging ==================
|
|
|
|
|
|
logging:
|
|
|
|
|
|
config: classpath:log4j2.xml
|
|
|
|
|
|
charset:
|
|
|
|
|
|
console: UTF-8
|
|
|
|
|
|
file: UTF-8
|