Skip to content

Warnings when adding title and description in application.yml for info #3170

@fsutter

Description

@fsutter

Describe the bug

After adding (under springdoc) these lines in application.yml:

  open-api:
    info:
      title: Alarm REST API
      description: Web API to interact with Alarm panel.
      version: 1.0.0

I got these two warnings at start:
Bean 'org.springdoc.core.configuration.SpringDocSpecPropertiesConfiguration' of type [org.springdoc.core.configuration.SpringDocSpecPropertiesConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). The currently created BeanPostProcessor [specificationStringPropertiesCustomizerBeanPostProcessor] is declared through a non-static factory method on that class; consider declaring it as static instead.
Bean 'org.springdoc.core.properties.SpringDocConfigProperties' of type [org.springdoc.core.properties.SpringDocConfigProperties] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected/applied to a currently created BeanPostProcessor [specificationStringPropertiesCustomizerBeanPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies/advisors. If this bean does not have to be post-processed, declare it with ROLE_INFRASTRUCTURE.

To Reproduce
Use Spring Boot 4.0.0 with this dependency:

        <dependency>
            <groupId>org.springdoc</groupId>
            <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
            <version>3.0.0</version>
        </dependency>

Add the open-api lines in application.yaml under springdoc section.

Expected behavior

  • No warning at start
  • What is the expected result using OpenAPI Description (yml or json)?
    json should start with:
    {"openapi":"3.1.0","info":{"description":"Web API to interact with Alarm panel.","title":"Alarm REST API","version":"1.0.0"} and not generic values.

Many thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions