public class Routes extends Object
Modifier and Type | Field and Description |
---|---|
Map<Class<?>,String> |
classPathMap
路径和class映射
key: class
value: /user
|
Map<Method,Object> |
methodBeanMap
方法和对象映射
key: method
value: bean
|
Map<Method,String[]> |
methodParamnameMap
方法参数名映射
key: method
value: ["id", "name", "scanPackages"]
|
Map<String,Object> |
pathBeanMap
路径和对象映射
key: /user
value: object
|
Map<String,Class<?>> |
pathClassMap
路径和class映射
只是用来打印的
key: /user
value: Class
|
Map<String,Method> |
pathMethodMap
Method路径映射
key: /user/update
value: method
|
Map<String,String> |
pathMethodstrMap
Method路径映射
只是用于打印日志
key: /user/update
value: method string
|
public Map<String,String> pathMethodstrMap
public Map<Method,String[]> methodParamnameMap
public Routes(String[] scanPackages)
public static void main(String[] args)
args
- Copyright © 2018. All rights reserved.