Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unexpected warning "Appended trailing slash to static resource location" #2947

@gwimmel

Description

@gwimmel

Describe the bug

In a Spring Boot 3.4.4 application with springdoc-openapi 2.8.4 I get the following unexpected warning message in the log when starting the application:

WARN o.s.w.r.resource.ResourceHandlerUtils    : Appended trailing slash to static resource location: classpath:/META-INF/resources/webjars/swagger-ui/5.18.2/

To Reproduce
Steps to reproduce the behavior:

  • create a Spring Boot app with spring-webflux
  • add springdoc-openapi 2.8.4 to the dependencies
  • create a minimal RestController with a hello world @GetMapping- Method
  • run the application

Expected behavior

  • no warning message 'Appended trailing slash' in the log

Additional context

  • 2.8.4 is the first springdoc-openapi version in which the warning message appears.
  • The warning message also appears in the current springdoc-openapi version 2.8.6
  • This is also mentioned in #2878 , but this bug was closed, probably because it mainly refers to the path handling change introduced by #2862 which appears to be intended. Most probably the warning is also related to #2862 .
  • I could provide a minimal example if it was helpful for analysis.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions