swagger密码访问不生效 #2253

This commit is contained in:
zhangdaiscott 2021-02-17 23:08:57 +08:00
parent dc91b8439c
commit 386ae84941
5 changed files with 14 additions and 14 deletions

View File

@ -36,7 +36,6 @@ import java.util.List;
@EnableSwagger2
@EnableKnife4j
@Import(BeanValidatorPluginsConfiguration.class)
@ConditionalOnProperty(name = "swagger.enable", havingValue = "true")
public class Swagger2Config implements WebMvcConfigurer {
/**

View File

@ -251,9 +251,8 @@ cas:
logging:
level:
org.jeecg.modules.system.mapper : info
#enable swagger
swagger:
enable: true
#swagger
knife4j:
production: false
basic:
enable: false

View File

@ -251,12 +251,11 @@ cas:
logging:
level:
org.jeecg.modules.system.mapper : info
#enable swagger
swagger:
enable: true
#swagger
knife4j:
production: false
basic:
enable: false
enable: true
username: jeecg
password: jeecg1314
#第三方登录

View File

@ -251,9 +251,8 @@ logging:
#cas单点登录
cas:
prefixUrl: http://cas.example.org:8443/cas
#enable swagger
swagger:
enable: true
#swagger
knife4j:
production: false
basic:
enable: false

View File

@ -156,9 +156,13 @@ logging:
#cas单点登录
cas:
prefixUrl: http://localhost:8888/cas
#enable swagger
swagger:
enable: true
#swagger
knife4j:
production: false
basic:
enable: false
username: jeecg
password: jeecg1314
#第三方登录
justauth: