From 48ae6734ff8124acd0770748d75df5737177fe13 Mon Sep 17 00:00:00 2001 From: walker-sheng Date: Tue, 22 Jun 2021 11:26:13 +0800 Subject: [PATCH] =?UTF-8?q?smart-doc=E7=9B=B8=E5=85=B3=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E8=B0=83=E6=95=B4=EF=BC=8C=E5=8F=AF=E7=94=B1=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E8=AE=BF=E9=97=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + src/main/java/club/joylink/rtss/configuration/WebConfig.java | 4 +--- src/main/resources/smart-doc.json | 3 ++- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 549e00a2a..da2d35fc1 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ target/ !.mvn/wrapper/maven-wrapper.jar !**/src/main/**/target/ !**/src/test/**/target/ +src/main/resources/static/ ### STS ### .apt_generated diff --git a/src/main/java/club/joylink/rtss/configuration/WebConfig.java b/src/main/java/club/joylink/rtss/configuration/WebConfig.java index 1553752fe..44a817f28 100644 --- a/src/main/java/club/joylink/rtss/configuration/WebConfig.java +++ b/src/main/java/club/joylink/rtss/configuration/WebConfig.java @@ -28,9 +28,7 @@ public class WebConfig implements WebMvcConfigurer { licenseWhiteList.add("/api/licensing/**"); registry.addInterceptor(licenseInterceptor).excludePathPatterns(licenseWhiteList); List whiteList = new ArrayList<>(); - whiteList.add("/swagger-ui.html"); - whiteList.add("/swagger-resources/**"); - whiteList.add("/webjars/springfox-swagger-ui/**"); + whiteList.add("/doc/**"); whiteList.add("/api/login/**"); whiteList.add("/api/wxpat/**"); whiteList.add("/api/sms/**"); diff --git a/src/main/resources/smart-doc.json b/src/main/resources/smart-doc.json index 0a0184f15..57e699aad 100644 --- a/src/main/resources/smart-doc.json +++ b/src/main/resources/smart-doc.json @@ -1,5 +1,6 @@ { - "outPath": "/joylink/rtss/doc", + "outPath": "src/main/resources/static/doc", + "projectName": "轨道交通", "ignoreRequestParams":[ "club.joylink.rtss.vo.AccountVO","club.joylink.rtss.vo.LoginUserInfoVO" ]