This fails:
@GetMapping("/resource/{*tail}")
public Object statics(@PathVariable String tail) {...}
with
Required URI template variable 'tail' for method parameter type String is not present
In fact what you need is
@GetMapping("/resource/{*tail}")
public Object statics(@PathVariable("*tail") String tail) {...}
This isn't really obvious from either the error message or the docs. Maybe we should support the first variant anyway?
This fails:
with
In fact what you need is
This isn't really obvious from either the error message or the docs. Maybe we should support the first variant anyway?