@EnableSwagger2WebMvc
@ConditionalOnProperty(prefix="knife4j",
name="enable",
havingValue="true",
matchIfMissing=true)
@Import(value=springfox.bean.validators.configuration.BeanValidatorPluginsConfiguration.class)
public class Swagger2Configuration
extends Object
| 构造器和说明 |
|---|
Swagger2Configuration() |
| 限定符和类型 | 方法和说明 |
|---|---|
SwaggerWebMvcConfigurer |
getSwaggerWebMvcConfigurer() |
org.springframework.beans.factory.config.BeanPostProcessor |
springfoxHandlerProviderBeanPostProcessor()
升级springboot2.6.6后临时处理,防止swagger报错
|
@Bean @ConditionalOnClass(value=SwaggerWebMvcConfigurer.class) public SwaggerWebMvcConfigurer getSwaggerWebMvcConfigurer()
@Bean public org.springframework.beans.factory.config.BeanPostProcessor springfoxHandlerProviderBeanPostProcessor()
Copyright © 2023. All rights reserved.