cn.potato.core.HandlerMethodArgsBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of potato-webmvc Show documentation
Show all versions of potato-webmvc Show documentation
以约定优于配置的思想,结合SpringMVC的一些优点(参数自动注入),实现一个自己的简单MVC框架。
The newest version!
package cn.potato.core;
import cn.potato.helper.ConvertHelper;
import javassist.*;
import javassist.bytecode.CodeAttribute;
import javassist.bytecode.LocalVariableAttribute;
import javassist.bytecode.MethodInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.http.HttpServletRequest;
import java.lang.reflect.Method;
import java.util.*;
/**
* HandlerMethodArgsBuilder 通过反射实现控制器方法参数的注入,由于JDK 1.7 反射无法获取参数名称故采用 javassist。
*/
public class HandlerMethodArgsBuilder {
private Map requestParamInfo;
private Map, String> methodParamInfo;
private List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy