From af54608f62b0d8fa29d17a4e550dcca778e31020 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期一, 11 七月 2022 16:29:16 +0800 Subject: [PATCH] update 优化 移除自带 swagger-ui 界面包 建议使用外置工具 --- ruoyi-admin/src/main/resources/application.yml | 14 ++++---------- 1 files changed, 4 insertions(+), 10 deletions(-) diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index 27482ac..09c0ee1 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -121,8 +121,7 @@ - /**/*.js # swagger 鏂囨。閰嶇疆 - /favicon.ico - - /doc.html - - /swagger-ui/** + - /*/api-docs - /*/api-docs/** # druid 鐩戞帶閰嶇疆 - /druid/** @@ -199,11 +198,6 @@ name: ${sa-token.token-name} springdoc: - swagger-ui: - # 淇敼Swagger UI璺緞 - path: /doc.html - # 鎸佷箙鍖栬璇佹暟鎹� - persistAuthorization: true #杩欓噷瀹氫箟浜嗕袱涓垎缁勶紝鍙畾涔夊涓紝涔熷彲浠ヤ笉瀹氫箟 group-configs: - group: 1.婕旂ず妯″潡 @@ -258,9 +252,9 @@ endpoints: web: exposure: - # 闇�瑕佸紑鏀剧殑绔偣銆傞粯璁ゅ�煎彧鎵撳紑 health 鍜� info 涓や釜绔偣銆傞�氳繃璁剧疆 * 锛屽彲浠ュ紑鏀炬墍鏈夌鐐广�� - # 鐢熶骇鐜涓嶅缓璁斁寮�鎵�鏈� 鏍规嵁椤圭洰闇�姹傛斁寮�鍗冲彲 - include: @endpoints.include@ + include: '*' endpoint: + health: + show-details: ALWAYS logfile: external-file: ./logs/sys-console.log -- Gitblit v1.9.3