swagger密码访问不生效 #2253

pull/2310/head
zhangdaiscott 2021-02-17 23:04:22 +08:00
parent 0252213b6e
commit d16520cc59
5 changed files with 14 additions and 14 deletions

View File

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

View File

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

View File

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

View File

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

View File

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