Quarkus: Support not supplying a value for name in Spring Web @PathVariable

Created on 12 Sep 2019  路  8Comments  路  Source: quarkusio/quarkus

In the current Quarkus integration when using Spring Web's @PathVariable one needs to supply a value for name (or value which is an alias) like so:

    public Greeting greet(@PathVariable(name = "message") String message) {
...
    }

In Spring Web this is not absolutely necessary because Spring can use the method parameter name (if the -parameter flag has been supplied during source code compilation).
We should try and do the same.

See: https://github.com/quarkusio/quarkusio.github.io/issues/289

arespring kinbug triagout-of-date

All 8 comments

@aureamunoz up to you :)

Same probably goes for @RequestParam

Ok. I will take a look!

The change will be in the RESTEasy codebase - let me know when you look into this so I can point you in the right direction

BTW, I can confirm that @RequestParam requires a name attribute.

fixed in part on RESTEasy PR 2177

This issue/pullrequest has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This has already been implemented

Was this page helpful?
0 / 5 - 0 ratings