类 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
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
    处理springfox2.x版本兼容高版本Spring Boot出现空指针的异常的情况,为开发者自动配置matchingStrategy策略(如果开发者没要求的情况下) springfox2 默认使用AntPathMatcher

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • 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