public class Demo01 {
@Test
public void test1() throws IllegalAccessException,
InvocationTargetException {
Person p = new Person();
BeanUtils.setProperty(p, "name", "x***");
System.out.println(p.getName());
}
@Test
public void test2() throws IllegalAccessException,
InvocationTargetException {
String name = "aaa";
String age = "23";
String password = "124";
Person p = new Person();
BeanUtils.setProperty(p, "name", "name");
BeanUtils.setProperty(p, "age", "age");
BeanUtils.setProperty(p, "password", "password");