@Retention(value=RUNTIME)
@Target(value=TYPE)
@Documented
public @interface HttpApi
To simplified the urls, use prefix() attribute to set the prefix of url in @HttpReq. ie. http://localhost:8080
Those interfaces annotated by this annotation will be scanned by HttpApiConfigurer
so that users can autowire the interface.
| 限定符和类型 | 可选元素和说明 |
|---|---|
java.lang.String |
prefix |
Copyright © 2019. All Rights Reserved.