类 SpringFoxEnvironmentPostProcessor
java.lang.Object
com.github.xiaoymin.knife4j.spring.common.bean.SpringFoxEnvironmentPostProcessor
- 所有已实现的接口:
org.springframework.boot.env.EnvironmentPostProcessor
public class SpringFoxEnvironmentPostProcessor
extends Object
implements org.springframework.boot.env.EnvironmentPostProcessor
- 从以下版本开始:
- 4.0.0
- 作者:
- xiaoymin@foxmail.com 2022/8/11 21:52
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidpostProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) 处理springfox2.x版本兼容高版本Spring Boot出现空指针的异常的情况,为开发者自动配置matchingStrategy策略(如果开发者没要求的情况下) springfox2 默认使用AntPathMatcher
-
构造器详细资料
-
SpringFoxEnvironmentPostProcessor
public SpringFoxEnvironmentPostProcessor()
-
-
方法详细资料
-
postProcessEnvironment
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) 处理springfox2.x版本兼容高版本Spring Boot出现空指针的异常的情况,为开发者自动配置matchingStrategy策略(如果开发者没要求的情况下) springfox2 默认使用AntPathMatcher- 指定者:
postProcessEnvironment在接口中org.springframework.boot.env.EnvironmentPostProcessor- 参数:
environment- Spring Boot环境上下文环境对象application- Spring Boot主程序Application
-