2018-12-19 23:12:40 +08:00
|
|
|
|
spring:
|
|
|
|
|
|
application:
|
|
|
|
|
|
name: zyplayer-doc-manage
|
2019-01-24 19:11:39 +08:00
|
|
|
|
# mvc:
|
|
|
|
|
|
# static-path-pattern: /**
|
2018-12-19 23:12:40 +08:00
|
|
|
|
|
|
|
|
|
|
server:
|
|
|
|
|
|
port: 8082
|
|
|
|
|
|
servlet:
|
|
|
|
|
|
context-path: /zyplayer-doc-manage
|
|
|
|
|
|
|
|
|
|
|
|
zyplayer:
|
|
|
|
|
|
doc:
|
2019-01-30 22:21:52 +08:00
|
|
|
|
swagger:
|
|
|
|
|
|
proxy-request:
|
|
|
|
|
|
# 内部访问时可以代理请求的域名,使用 ; 分割,必须设置,防止访问到内部地址资源
|
|
|
|
|
|
white-domain: http://127.0.0.1/;http://www.baidu.com/;http://swagger-bootstrap-ui.xiaominfo.com/
|
2018-12-22 22:59:39 +08:00
|
|
|
|
# zyplayer_doc_manage管理端的数据库配置
|
2018-12-19 23:12:40 +08:00
|
|
|
|
manage:
|
|
|
|
|
|
datasource:
|
|
|
|
|
|
driverClassName: com.mysql.jdbc.Driver
|
2018-12-22 22:59:39 +08:00
|
|
|
|
url: jdbc:mysql://127.0.0.1:3306/zyplayer_doc_manage?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&useSSL=false
|
2018-12-19 23:12:40 +08:00
|
|
|
|
username: root
|
|
|
|
|
|
password: root
|
|
|
|
|
|
# 数据库文档相关
|
2018-12-22 22:59:39 +08:00
|
|
|
|
# 打开/zyplayer_doc_manage/doc-db.html即可看到这里配置的数据库的文档
|
2018-12-19 23:12:40 +08:00
|
|
|
|
db:
|
|
|
|
|
|
dbConfigList:
|
|
|
|
|
|
- driverClassName: com.mysql.jdbc.Driver
|
2018-12-22 22:59:39 +08:00
|
|
|
|
url: jdbc:mysql://127.0.0.1:3306/zyplayer_doc_manage?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&useSSL=false
|
2018-12-19 23:12:40 +08:00
|
|
|
|
username: root
|
|
|
|
|
|
password: root
|
|
|
|
|
|
# 多个数据源直接这样累加
|
|
|
|
|
|
# - driverClassName: com.mysql.jdbc.Driver
|
2018-12-22 22:59:39 +08:00
|
|
|
|
# url: jdbc:mysql://127.0.0.1:3306/zyplayer_doc_manage?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&useSSL=false
|
2018-12-19 23:12:40 +08:00
|
|
|
|
# username: root
|
|
|
|
|
|
# password: root
|
|
|
|
|
|
|
|
|
|
|
|
mybatis-plus:
|
|
|
|
|
|
mapper-locations: classpath:/mapper/**/*Mapper.xml
|
|
|
|
|
|
#实体扫描,多个package用逗号或者分号分隔
|
2019-01-24 20:10:29 +08:00
|
|
|
|
typeAliasesPackage: com.zyplayer.doc.manage.repository.manage.entity
|
|
|
|
|
|
typeEnumsPackage:
|
2018-12-19 23:12:40 +08:00
|
|
|
|
global-config:
|
|
|
|
|
|
# 数据库相关配置
|
|
|
|
|
|
db-config:
|
|
|
|
|
|
#主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID",ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
|
2019-01-24 20:10:29 +08:00
|
|
|
|
id-type: AUTO
|
2018-12-19 23:12:40 +08:00
|
|
|
|
#字段策略 IGNORED:"忽略判断",NOT_NULL:"非 NULL 判断"),NOT_EMPTY:"非空判断"
|
|
|
|
|
|
field-strategy: not_empty
|
|
|
|
|
|
#驼峰下划线转换
|
|
|
|
|
|
column-underline: true
|
|
|
|
|
|
#数据库大写下划线转换
|
|
|
|
|
|
#capital-mode: true
|
|
|
|
|
|
#逻辑删除配置
|
|
|
|
|
|
logic-delete-value: 0
|
|
|
|
|
|
logic-not-delete-value: 1
|
|
|
|
|
|
db-type: mysql
|
|
|
|
|
|
#刷新mapper 调试神器
|
|
|
|
|
|
refresh: true
|
|
|
|
|
|
# 原生配置
|
|
|
|
|
|
configuration:
|
|
|
|
|
|
map-underscore-to-camel-case: true
|
|
|
|
|
|
cache-enabled: false
|
2019-01-24 19:11:39 +08:00
|
|
|
|
|
|
|
|
|
|
|
2018-12-19 23:12:40 +08:00
|
|
|
|
#一些测试地址
|
|
|
|
|
|
#https://gitee.com/GeekPerson/central-platform 项目的文档
|
2019-01-24 19:11:39 +08:00
|
|
|
|
#http://47.99.88.28:9200/swagger-resources
|