1.验证用户名: 去数据库中查看,是否有重名的 2.验证邮箱 获取前端数据的时候,controller类里面传入的参数尽可能与前端参数一致,不一致的可以使用@RequestParam 补充: 查看的博文:https://blog.csdn.net/zhoudi_an/article/details/104647473?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522159505540819724848302689%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=159505540819724848302689&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_ecpm_v3~pc_rank_v3-1-104647473.pc_ecpm_v3_pc_rank_v3&utm_term=requestparam%E5%92%8Cparam