集成 One-Api
This commit is contained in:
@@ -5,7 +5,7 @@ spring:
|
||||
datasource:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:3308/rnb?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true&allowMultiQueries=true
|
||||
url: jdbc:mysql://localhost:3306/rnb?zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true&allowMultiQueries=true
|
||||
username: root
|
||||
password: 168soft.xyz
|
||||
data:
|
||||
@@ -13,7 +13,7 @@ spring:
|
||||
database: 2
|
||||
host: localhost
|
||||
port: 6379
|
||||
#password: ""
|
||||
password: CZwy168
|
||||
timeout: 10s
|
||||
lettuce:
|
||||
pool:
|
||||
@@ -89,11 +89,11 @@ security:
|
||||
- /ws/** # WebSocket接口
|
||||
# 非安全端点路径,完全绕过 Spring Security 的过滤器
|
||||
unsecured-urls:
|
||||
- ${springdoc.swagger-ui.path}
|
||||
- /doc.html
|
||||
- /swagger-ui/**
|
||||
- /v3/api-docs/**
|
||||
- /webjars/**
|
||||
# - ${springdoc.swagger-ui.path}
|
||||
# - /doc.html
|
||||
# - /swagger-ui/**
|
||||
# - /v3/api-docs/**
|
||||
# - /webjars/**
|
||||
- /favicon.ico
|
||||
|
||||
# 文件存储配置
|
||||
@@ -125,7 +125,7 @@ oss:
|
||||
# 本地存储
|
||||
local:
|
||||
# 文件存储路径 请注意下,mac用户请使用 /Users/your-username/your-path/,否则会有权限问题,windows用户请使用 D:/your-path/
|
||||
storage-path: C:\application\rnb\files\ #/opt/datao/rnb/files/
|
||||
storage-path: /opt/datao/rnb/files/ # C:\application\rnb\files\ #
|
||||
# 短信配置
|
||||
sms:
|
||||
# 阿里云短信
|
||||
@@ -144,30 +144,30 @@ sms:
|
||||
change-mobile: SMS_22xxx773
|
||||
|
||||
# springdoc配置: https://springdoc.org/properties.html
|
||||
springdoc:
|
||||
swagger-ui:
|
||||
path: /swagger-ui.html
|
||||
operationsSorter: alpha
|
||||
tags-sorter: alpha
|
||||
api-docs:
|
||||
path: /v3/api-docs
|
||||
group-configs:
|
||||
- group: '系统管理'
|
||||
paths-to-match: "/**"
|
||||
packages-to-scan:
|
||||
- com.rnb.system.controller
|
||||
- com.rnb.shared.auth.controller
|
||||
- com.rnb.shared.file.controller
|
||||
- com.rnb.shared.codegen.controller
|
||||
- com.rnb.maoyan.controller
|
||||
default-flat-param-object: true
|
||||
#springdoc:
|
||||
# swagger-ui:
|
||||
# path: /swagger-ui.html
|
||||
# operationsSorter: alpha
|
||||
# tags-sorter: alpha
|
||||
# api-docs:
|
||||
# path: /v3/api-docs
|
||||
# group-configs:
|
||||
# - group: '系统管理'
|
||||
# paths-to-match: "/**"
|
||||
# packages-to-scan:
|
||||
# - com.rnb.system.controller
|
||||
# - com.rnb.shared.auth.controller
|
||||
# - com.rnb.shared.file.controller
|
||||
# - com.rnb.shared.codegen.controller
|
||||
# - com.rnb.maoyan.controller
|
||||
# default-flat-param-object: true
|
||||
|
||||
# knife4j 接口文档配置
|
||||
knife4j:
|
||||
# 是否开启 Knife4j 增强功能
|
||||
enable: true # 设置为 true 表示开启增强功能
|
||||
# 生产环境配置
|
||||
production: false # 设置为 true 表示在生产环境中不显示文档,为 false 表示显示文档(通常在开发环境中使用)
|
||||
production: true # 设置为 true 表示在生产环境中不显示文档,为 false 表示显示文档(通常在开发环境中使用)
|
||||
setting:
|
||||
language: zh_cn
|
||||
|
||||
|
||||
Reference in New Issue
Block a user