MayFramework , controller
1.每个controller 通过Method.getMethods()维护一个methods MAP 2.从请求URL中获取method名称,根据名称从MAP中获取Method实例。 3.从Method.getParameterTypes()获取参数类型列表。 4.实例化参数,并绑定数据。 5.调用方法处理请求。
1.每个controller 通过Method.getMethods()维护一个methods MAP 2.从请求URL中获取method名称,根据名称从MAP中获取Method实例。 3.从Method.getParameterTypes()获取参数类型列表。 4.实例化参数,并绑定数据。 5.调用方法处理请求。
暂无评论。
评论功能维护中,当前仅展示历史评论。