Annotation Interface ScxRoute
路由注解
- 版本:
- 0.3.6
- 作者:
- scx567888
-
元素详细资料
-
value
String value- 返回:
- the path
- 另请参阅:
-
Router.route(String)
- 默认值:
- ""
-
methods
HttpMethod[] methods- 返回:
- the path
- 另请参阅:
-
(String)
- 默认值:
- {}
-
consumes
String[] consumes- 返回:
- the path
- 另请参阅:
-
Route.consumes(String)
- 默认值:
- {}
-
produces
String[] produces- 返回:
- the path
- 另请参阅:
-
Route.produces(String)
- 默认值:
- {}
-
order
int order排序- 返回:
- a
- 默认值:
- 0
-
ignoreParentUrl
boolean ignoreParentUrl是否忽略类级别上的 ScxRoute 注解所定义的顶级 url- 返回:
- 是否
- 默认值:
- false
-
useNameAsUrl
boolean useNameAsUrl注意 : 仅当作用于方法时生效 !!! 是否使用方法名称作为 url 路径
仅当 value 为 "" 时生效
规则为 获取方法名称 然后转换为 短横线命名法
如 方法名为 getUserList 则 url 为 /user/get-user-list- 返回:
- 标识
- 默认值:
- true
-