批注接口 EnableOpenApi


@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited @EnableConfigurationProperties(SwaggerProperties.class) @Import(OpenAPIDefinitionImportSelector.class) @PropertySource(value="classpath:openapi-config.yaml", factory=YamlPropertySourceFactory.class) public @interface EnableOpenApi
开启 spring doc
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    网关路由前缀
  • 元素详细资料

    • value

      String value
      网关路由前缀
      返回:
      String
      默认值:
      ""