标签:
一: Object object = new Object(); 二: public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException { //可以通过映射的方式来获取 DemoTest2 myobject = (DemoTest2)Class.forName("DemoTest2").newInstance(); myobject.findAll(); }
标签:
原文地址:http://my.oschina.net/isxiaoge/blog/492108