Commit 386ae84941cca7500e04c93196b1a9b92fbe3e26
1 parent
dc91b843
swagger密码访问不生效 #2253
Showing
5 changed files
with
14 additions
and
14 deletions
jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/config/Swagger2Config.java
... | ... | @@ -36,7 +36,6 @@ import java.util.List; |
36 | 36 | @EnableSwagger2 |
37 | 37 | @EnableKnife4j |
38 | 38 | @Import(BeanValidatorPluginsConfiguration.class) |
39 | -@ConditionalOnProperty(name = "swagger.enable", havingValue = "true") | |
40 | 39 | public class Swagger2Config implements WebMvcConfigurer { |
41 | 40 | |
42 | 41 | /** |
... | ... |
jeecg-boot/jeecg-boot-module-system/src/main/resources/application-dev.yml
jeecg-boot/jeecg-boot-module-system/src/main/resources/application-prod.yml
... | ... | @@ -251,12 +251,11 @@ cas: |
251 | 251 | logging: |
252 | 252 | level: |
253 | 253 | org.jeecg.modules.system.mapper : info |
254 | -#enable swagger | |
255 | -swagger: | |
256 | - enable: true | |
254 | +#swagger | |
255 | +knife4j: | |
257 | 256 | production: false |
258 | 257 | basic: |
259 | - enable: false | |
258 | + enable: true | |
260 | 259 | username: jeecg |
261 | 260 | password: jeecg1314 |
262 | 261 | #第三方登录 |
... | ... |
jeecg-boot/jeecg-boot-module-system/src/main/resources/application-test.yml
jeecg-boot/jeecg-boot-starter/jeecg-boot-starter-cloud/nacos/jeecg-dev.yaml
... | ... | @@ -156,9 +156,13 @@ logging: |
156 | 156 | #cas单点登录 |
157 | 157 | cas: |
158 | 158 | prefixUrl: http://localhost:8888/cas |
159 | -#enable swagger | |
160 | -swagger: | |
161 | - enable: true | |
159 | +#swagger | |
160 | +knife4j: | |
161 | + production: false | |
162 | + basic: | |
163 | + enable: false | |
164 | + username: jeecg | |
165 | + password: jeecg1314 | |
162 | 166 | |
163 | 167 | #第三方登录 |
164 | 168 | justauth: |
... | ... |