You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.6 KiB
59 lines
1.6 KiB
## ---- 开发环境 ---- ##
|
|
opsli:
|
|
# 前缀
|
|
prefix: api
|
|
# 版本
|
|
version: v1
|
|
|
|
# 端口设置
|
|
server:
|
|
port: 8080
|
|
|
|
spring:
|
|
#redis 配置
|
|
redis:
|
|
database: 0
|
|
host: 127.0.0.1
|
|
password: '123456'
|
|
port: 6379
|
|
|
|
# 数据库配置
|
|
datasource:
|
|
# 数据库连接池监控
|
|
druid:
|
|
stat-view-servlet:
|
|
# 数据库监控开关
|
|
enabled: true
|
|
# 登录用户名/密码
|
|
login-username: admin
|
|
login-password: 123456
|
|
# IP 白名单,没有配置或者为空,则允许所有访问
|
|
allow:
|
|
# IP 黑名单,若白名单也存在,则优先使用
|
|
deny:
|
|
# 多数据源
|
|
dynamic:
|
|
#主数据源
|
|
#设置默认的数据源或者数据源组,默认值即为master,如果你主从默认下主库的名称就是master可不定义此项。
|
|
#primary: master
|
|
datasource:
|
|
master:
|
|
url: jdbc:mysql://127.0.0.1:3306/opsli-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false
|
|
username: root
|
|
password: 12345678
|
|
driver-class-name: com.mysql.jdbc.Driver
|
|
# 多数据源配置
|
|
#slave-datasource:
|
|
#url: jdbc:mysql://localhost:3306/opsli-boot?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
|
|
#username: root
|
|
#password: 12345678
|
|
#driver-class-name: com.mysql.jdbc.Driver
|
|
|
|
#Mybatis输出sql日志
|
|
#logging:
|
|
# level:
|
|
# org.opsli.modulars.system.mapper : debug
|
|
|
|
# swagger 配置
|
|
swagger:
|
|
production: false |