public class SpringUtil extends Object
| 构造器和说明 |
|---|
SpringUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getMapping(Class claszz)
解析SpringBoot的路由注解 得到路由映射mapping
解析以下注解
|
static String |
getMapping(Method method)
解析SpringBoot的路由注解 得到路由映射mapping
解析以下注解
|
static Integer |
getRequestMethod(Method method)
获取请求方式
请求方式 0-全部 1-get 2-post 3-put 4-delete
|
public static String getMapping(Class claszz)
claszz - 类RequestMapping,
GetMapping,
PostMapping,
PutMapping,
DeleteMapping,
查看spring源码可以看到,RequestMapping中有多个同等意义的属性,这里分别处理
value name pathpublic static String getMapping(Method method)
method - 方法RequestMapping,
GetMapping,
PostMapping,
PutMapping,
DeleteMapping,
查看spring源码可以看到,RequestMapping中有多个同等意义的属性,这里分别处理
value name pathCopyright © 2021. All rights reserved.