@Target(value=TYPE) @Retention(value=RUNTIME) public @interface Path
@Controller
@Path("/customers")
class CustomerController {
...
}
Note that unlike JAX-RS we only use @Path on the controller type and don't
use it on the methods. This is because the @Get, @Post etc annotations
include a path as well.
Copyright © 2019. All rights reserved.