class UserController {

    @RequestMapping("register")
    public String userRegister(@Validated UserRegisterParam param)
            throws Exception {
        User user = new User();
        BeanUtils.copyProperties(user,param);
        if(userService.userRegister(user)) {
            return "注册成功";
        }
        return "注册失败";
    }

}