Skip to content

Support spring-web wildcard syntax in @RequestMapping #5370

@johnaohara

Description

@johnaohara

Describe the bug
Spring-web RequestMapping allows for wildcard definitions within paths that have a different syntax from valid jax-rs paths.

In order to facilitate support of spring-web applications without developers having to re-define path mappings, quarkus should fully support the spring-web syntax in @RequestMapping definitions.

Expected behavior
e.g @GetMapping("/wildcard/*/{name}") should map /wildcard/1/Quarkus, currently returns HTTP 404, whereas /wildcard/*/Quarkus returns HTTP 200

@RequestMapping("/car?/s?o?/info") should also map urls "/cars/shop/info" and "/cart/show/info"

To Reproduce
Steps to reproduce the behavior:

  1. git clone [email protected]:johnaohara/quarkusSpringWebWildcards.git
  2. cd quarkusSpringWebWildcards
  3. mvn clean test

Metadata

Metadata

Assignees

Labels

area/springIssues relating to the Spring integrationkind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions