@Retention(value=RUNTIME) @Target(value=TYPE) public @interface PathPrefix
> @PathPrefix("/b")
> public class MyService {
> @Get("/c")
> public HttpResponse foo() { ... }
> }
And then can be registered to ServerBuilder like this
ServerBuilder sb = Server.builder();
sb.annotatedService("/a", new MyService());
In this case foo() method handles a request that matches path /a/b/c
public abstract String value
Copyright © 2020 LeanCloud. All rights reserved.