Why is micronaut invoking the wrong controller method?
Clash Royale CLAN TAG #URR8PPP Why is micronaut invoking the wrong controller method? I have a micronaut API like this: @Get("/") List<Club> listClubs() @Get("/{id}") Club show(Long id) In my unit test, when I invoke the show method, the listClubs() method is actually getting invoked, instead. show listClubs() Why is this happening? Details: Thinking that my URL mappings must be wrong, I started debugging into Netty to try to understand how the framework constructs URLs. In HttpClientIntroductionAdvice , the context shows the API method like this: HttpClientIntroductionAdvice Club show(Long param0) Club show(Long param0) The interceptor is setting param0 in the parameter map, which doesn't match the actual parameter name of my method. When the URI template is expanded, this causes the ID to get dropped (thus the URI becomes / instead of /1 ). param0 / /1 I am trying to follow this example: https://github.com/alvarosanchez/micronaut-work...