@Component
public class AppBoot implements CommandLineRunner {
private String id;
@Override
public void run(String... args) throws Exception {
BeanWrapper bw = PropertyAccessorFactory.forBeanPropertyAccess(this);
bw.setPropertyValue("id", "1111111111111111111111111111111111");
System.out.println(id);
}
/**
* @return the id
*/
public String getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(String id) {
this.id = id;
}
}