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" ]