Skip to content

Commit

Permalink
配置文件增加knife4j文档配置
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiao committed Jan 7, 2025
1 parent 3eda4f1 commit 4bc4f27
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 8 deletions.
13 changes: 12 additions & 1 deletion conf/manager/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,19 @@ logging:
path: /jeepayhomes/service/logs #日志存放地址

# knife4j APIDOC文档
springdoc:
swagger-ui:
path: /swagger-ui.html
tags-sorter: alpha
operations-sorter: alpha
api-docs:
path: /v3/api-docs
group-configs:
- group: 'default'
paths-to-match: '/**'
packages-to-scan: com.jeequan.jeepay.mgr.ctrl
knife4j:
enable: false
enable: true

#系统业务参数
isys:
Expand Down
13 changes: 12 additions & 1 deletion conf/merchant/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,19 @@ logging:
path: /jeepayhomes/service/logs #日志存放地址

# knife4j APIDOC文档
springdoc:
swagger-ui:
path: /swagger-ui.html
tags-sorter: alpha
operations-sorter: alpha
api-docs:
path: /v3/api-docs
group-configs:
- group: 'default'
paths-to-match: '/**'
packages-to-scan: com.jeequan.jeepay.mch.ctrl
knife4j:
enable: false
enable: true

#系统业务参数
isys:
Expand Down
19 changes: 18 additions & 1 deletion conf/payment/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,25 @@ logging:
path: /jeepayhomes/service/logs #日志存放地址

# knife4j APIDOC文档
springdoc:
swagger-ui:
path: /swagger-ui.html
api-docs:
path: /v3/api-docs
group-configs:
- group: 'default'
display-name: '支付网关'
paths-to-match: '/**'
packages-to-scan: com.jeequan.jeepay.pay.ctrl.test
knife4j:
enable: false
enable: true
setting:
language: zh_cn
swagger-model-name: 公共响应
documents:
- name: API
locations: classpath:markdown/doc/*
group: default

#系统业务参数
isys:
Expand Down
2 changes: 1 addition & 1 deletion jeepay-manager/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spring:
isys:
jwt-secret: t7w3P8X6472qWc3u #生成jwt的秘钥。 要求每个系统有单独的秘钥管理机制。

# knife4j APIDOC文档
springdoc:
swagger-ui:
path: /swagger-ui.html
Expand All @@ -20,6 +21,5 @@ springdoc:
- group: 'default'
paths-to-match: '/**'
packages-to-scan: com.jeequan.jeepay.mgr.ctrl
# knife4j APIDOC文档
knife4j:
enable: true
2 changes: 1 addition & 1 deletion jeepay-merchant/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spring:
isys:
jwt-secret: ARNXp4MzjOOQqxtv #生成jwt的秘钥。 要求每个系统有单独的秘钥管理机制。

# knife4j APIDOC文档
springdoc:
swagger-ui:
path: /swagger-ui.html
Expand All @@ -20,6 +21,5 @@ springdoc:
- group: 'default'
paths-to-match: '/**'
packages-to-scan: com.jeequan.jeepay.mch.ctrl
# knife4j APIDOC文档
knife4j:
enable: true
3 changes: 1 addition & 2 deletions jeepay-payment/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ spring:
redis:
database: 3 #1库:运营平台 #2库:商户系统 #3库:支付网关

# knife4j APIDOC文档
springdoc:
swagger-ui:
path: /swagger-ui.html
Expand All @@ -15,8 +16,6 @@ springdoc:
display-name: '支付网关'
paths-to-match: '/**'
packages-to-scan: com.jeequan.jeepay.pay.ctrl.test

# knife4j APIDOC文档
knife4j:
enable: true
setting:
Expand Down
2 changes: 1 addition & 1 deletion jeepay-payment/src/main/resources/markdown/doc/api4.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 转载接口
# 转账接口

## 发起转账

Expand Down

0 comments on commit 4bc4f27

Please sign in to comment.