1.属性的动态getter,setter   在这框架满天飞的年代,不能事事都保证执行getter,setter函数了,有时候属性是要需要根据名字动态取得的,就像这样:   BeanUtils.getProperty(myBean,"code");   而BeanUtils更强的功能是直接访问内嵌对象的属性,只要使用点号分隔。 BeanUtils.getProperty(orderBean, "address.city");  相比之下…

2012/05/05 0条评论 1985点热度 0人点赞 阅读全文