if(passObject!=null)
{
pass = stringValue(passObject);
}
Users user = new Users();
UserInfo userInfo = new UserInfo();
try{
BeanUtils.populate(user, properties);//各取所需信息
if(user.getEnabled()==null)//默认创建用户时,使能用户
user.setEnabled(true);
BeanUtils.populate(userInfo, properties);
user.setName(name);
// 后台为用户随机生成唯一的salt
user.setSalt(MyUUIDGen.getUUID());
String encodedPassword = passwordEncoder.encodePassword(pass,user.getSalt());
user.setPassword(encodedPassword);
user.setId(MyUUIDGen.getUUID());
userInfo.setUserId(user.getId());
usersDAO.merge(user);
userInfoDAO.merge(userInfo);
result.setSucceed(user.getId());
}
catch(Exception e)