Selaa lähdekoodia

docs(knife4j): 添加 Knife4j 相关配置- 在 application-dev.yml 文件中添加 Knife4j 配置信息- 配置接口文档标题、描述、联系方式等信息
- 设置 API 分组和访问规则

nahida 11 kuukautta sitten
vanhempi
commit
08bfbec497
1 muutettua tiedostoa jossa 18 lisäystä ja 1 poistoa
  1. 18 1
      src/main/resources/application-dev.yml

+ 18 - 1
src/main/resources/application-dev.yml

@@ -31,4 +31,21 @@ minio:
   secretKey: minio123
   bucket: zksy-file
   readPath: http://192.168.110.30:9000
-imgAddress: D:/Temp/%s.jpg
+imgAddress: D:/Temp/%s.jpg
+
+
+knife4j:
+  enable: true
+  openapi:
+    title: 资产管理服务接口文档
+    description: 资产管理服务接口文档
+    email: 1019904632@qq.com
+    concat: nahida
+    url: https://www.itcast.cn
+    version: v1.0.0
+    group:
+      default:
+        group-name: default
+        api-rule: package
+        api-rule-resources:
+          - com.zksy.**.controller