1、org.springframework.beans.BeanUtils#copyProperties public User addUser(@ModelAttribute inDto dto) { User user= new User(); BeanUtils.copyProperties(dto, user);