I have defined an ApiController to add a prefix (/api) to route match. I am using Spring Boot
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@RestController
@RequestMapping("/api")
public @interface ApiController {
    @AliasFor(annotation = RequestMapping.class, attribute = "value")
    String[] value();
}
and Use in the controller like
@ApiController("/user")
public class UserController {
    /**
     * Define url methods
     *
     */
}
but I don't know why /api/user/ not serving. it serve at /user/ Endpoint. Can any one know the exact error ?