smart-doc相关配置调整,可由项目访问

This commit is contained in:
walker-sheng 2021-06-22 11:26:13 +08:00
parent e8373fc6e6
commit 48ae6734ff
3 changed files with 4 additions and 4 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@ target/
!.mvn/wrapper/maven-wrapper.jar !.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/ !**/src/main/**/target/
!**/src/test/**/target/ !**/src/test/**/target/
src/main/resources/static/
### STS ### ### STS ###
.apt_generated .apt_generated

View File

@ -28,9 +28,7 @@ public class WebConfig implements WebMvcConfigurer {
licenseWhiteList.add("/api/licensing/**"); licenseWhiteList.add("/api/licensing/**");
registry.addInterceptor(licenseInterceptor).excludePathPatterns(licenseWhiteList); registry.addInterceptor(licenseInterceptor).excludePathPatterns(licenseWhiteList);
List<String> whiteList = new ArrayList<>(); List<String> whiteList = new ArrayList<>();
whiteList.add("/swagger-ui.html"); whiteList.add("/doc/**");
whiteList.add("/swagger-resources/**");
whiteList.add("/webjars/springfox-swagger-ui/**");
whiteList.add("/api/login/**"); whiteList.add("/api/login/**");
whiteList.add("/api/wxpat/**"); whiteList.add("/api/wxpat/**");
whiteList.add("/api/sms/**"); whiteList.add("/api/sms/**");

View File

@ -1,5 +1,6 @@
{ {
"outPath": "/joylink/rtss/doc", "outPath": "src/main/resources/static/doc",
"projectName": "轨道交通",
"ignoreRequestParams":[ "ignoreRequestParams":[
"club.joylink.rtss.vo.AccountVO","club.joylink.rtss.vo.LoginUserInfoVO" "club.joylink.rtss.vo.AccountVO","club.joylink.rtss.vo.LoginUserInfoVO"
] ]