插入beans地址
<!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.9.3</version>
</dependency>
/* demo01
Class clazz = Class.forName("test.beanutils.User");
//2.生成该字节码的一个对象
Object obj = clazz.newInstance();
BeanUtils.setProperty(obj,"name","张三");
BeanUtils.setProperty(obj,"password","123");
System.out.println(obj);//User{name='张三', password='123'}*/
/* demo2
User user=new User();
Map map=new HashMap();
map.put("name","张三");
map.put("password","1234");
BeanUtils.populate(user,map);
System.out.println(user);*/
/* 对象复制
User u=new User();
User user=new User();
u.setName("lisi");
u.setPassword("12");
BeanUtils.copyProperties(user,u);
System.out.println(u==user);*/