2012年3月10日

spring入门基础

摘要: Spring入门—反射技术无参数的Java代码Class.forName(className).newInstance; //有参数的 Class.forName(className).getDeclaredConstructor(String.class).newInstance(“黎明”); //通过反射获取属性 Introspector.getBeanInfo(Person.class).getPropertyDescriptors() //通过反射机制修改bean属性的值 Personperson=(Person)Class.forName(className).getDeclared 阅读全文

posted @ 2012-03-10 10:09 莆田小子 阅读(556) 评论(0) 推荐(0) 编辑

导航