I have two methods mapped with @GetMapping:
@GetMapping(path = "/**", produces = MediaType.APPLICATION_JSON_VALUE, params = "test")
public String getTest(@RequestParam("test") String test) {
...
}
@GetMapping(path = "/some/path", produces = MediaType.APPLICATION_JSON_VALUE)
public String getTest() {
...
}
Is it possible to request to endpoint /some/path?test=string
be mapped
to first method, and request to endpoint some/path
be mapped to second method?