//1:动态加载类  JDK 1.7 
Class cls = Class.forName(className);
//2:动态创建对象
Object obj = cls.newInstance();
//3:动态查找service方法
Method method = cls.getDeclaredMethod("service",
HttpRequest.class,HttpResponse.class);
//System.out.println("method:"+method);WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.dom4j.io.SAXContentHandler (file:/C:/Users/liuchun/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar) to method com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser$LocatorProxy.getEncoding()
WARNING: Please consider reporting this to the maintainers of org.dom4j.io.SAXContentHandler
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release