效果图:
登陆页
注册页
登陆成功页:
环境介绍
jdk:1.8以及上
前端:vue
后端:springboot+mybatis
数据库:mysql5.6
如果你在运行这个代码的过程中有遇到问题,请加小编vi信xxf960513,我拉你进对应学习群!!帮助你快速掌握这个功能代码!
核心代码介绍
登陆注册核心代码
package com.example.demo.controller;
import com.example.demo.entity.User;
import com.example.demo.service.UserService;
import com.example.demo.utils.Md5Util;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
/**
* @author: 关注微信公众号《web项目开发》
*/
@Api(description = "用户接口")
@RestController
@RequestMapping("/user")
@CrossOrigin
public class UserCo