server:
|
port: 9205
|
spring:
|
application:
|
# 应用名称
|
name: aps-core
|
cloud:
|
nacos:
|
discovery:
|
# 服务注册地址
|
server-addr: 192.168.50.160:8848
|
namespace: aafcd57a-d0f7-43e3-a77d-1dc85aec1f0e
|
metadata:
|
local: int
|
config:
|
# 配置中心地址
|
server-addr: 192.168.50.160:8848
|
# 配置文件格式
|
file-extension: yml
|
namespace: aafcd57a-d0f7-43e3-a77d-1dc85aec1f0e
|
# 共享配置
|
shared-configs:
|
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
# spring配置
|
data:
|
redis:
|
host: 192.168.50.160
|
port: 6379
|
password:
|
datasource:
|
druid:
|
stat-view-servlet:
|
enabled: true
|
loginUsername: ruoyi
|
loginPassword: 123456
|
dynamic:
|
druid:
|
initial-size: 5
|
min-idle: 5
|
maxActive: 20
|
maxWait: 60000
|
connectTimeout: 30000
|
socketTimeout: 60000
|
timeBetweenEvictionRunsMillis: 60000
|
minEvictableIdleTimeMillis: 300000
|
testWhileIdle: true
|
testOnBorrow: false
|
testOnReturn: false
|
poolPreparedStatements: true
|
maxPoolPreparedStatementPerConnectionSize: 20
|
filters: stat,slf4j
|
datasource:
|
# 主库数据源
|
master:
|
driver-class-name: org.postgresql.Driver
|
url: jdbc:postgresql://192.168.50.160:5432/postgres?stringtype=unspecified
|
username: postgres
|
password: pwd@aps
|
# 从库数据源
|
# slave:
|
# username:
|
# password:
|
# url:
|
# driver-class-name:
|
|
## mybatis配置
|
#mybatis:
|
# # 搜索指定包别名
|
# typeAliasesPackage: com.aps.core
|
# # 配置mapper的扫描,找到所有的mapper.xml映射文件
|
# mapperLocations: classpath:mapper/**/*.xml
|
# mp配置
|
mybatis-plus:
|
mapper-locations: classpath:mapper/**/*.xml
|
type-aliases-package: com.aps.core
|
global-config:
|
db-config:
|
id-type: ASSIGN_ID
|
logic-delete-value: 1
|
logic-not-delete-value: 0
|
configuration:
|
map-underscore-to-camel-case: true
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
# springdoc配置
|
springdoc:
|
gatewayUrl: http://localhost:8080/${spring.application.name}
|
api-docs:
|
# 是否开启接口文档
|
enabled: true
|
info:
|
# 标题
|
title: '系统模块接口文档'
|
# 描述
|
description: '系统模块接口描述'
|