Skip to content

The name of the matching-strategy property is incorrect in the action message of the failure analysis for a PatternParseException #28791

Closed
@Ed42

Description

@Ed42

changing from Spring Boot 2.5.6 to 2.6.0 produces this error on startup:

Description:

Invalid mapping pattern detected: /**/swagger-ui/**
^
No more pattern data allowed after {*...} or ** pattern element

Action:

Fix this pattern in your application or switch to the legacy parser implementation with 'spring.mvc.pathpattern.matching-strategy=ant_path_matcher'.

The suggested (legacy) fix does not work.

Using

        <swagger-models.version>2.1.11</swagger-models.version>
        <springdoc.version>1.5.12</springdoc.version>

        ...

            <!-- OpenAPI / swagger -->
            <dependency>
                <groupId>io.swagger.core.v3</groupId>
                <artifactId>swagger-models</artifactId>
                <version>${swagger-models.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springdoc</groupId>
                <artifactId>springdoc-openapi-ui</artifactId>
                <version>${springdoc.version}</version>
            </dependency>

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by anothertype: bugA general bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions