注册验证之邮箱验证(SpringBoot框架)

一、首先先加入邮箱依赖,看下面链接!

JAVA实现邮件发送(SPRING BOOT 框架)

二、大概思路及实现

1.数据库加一个验证字段

2.先让用户进行注册
前端实现:(正常的注册,只是邮箱必填,会的直接跳过看后台实现)

<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <title>注册</title>
</head>
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" th:href="@{/bodystyle.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{/loginStyle.css}" />
    <title>注册界面</title>
</head>
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
<body><center>
    <div >
        <div class="uu">
            <div class="dl">
                <img width="150" height="80" th:alt="学法平台注册" th:src="@{/image/auncel.jpg}"/>
            </div>
            <form method="post" name="form1">
                <table>
                    <tr>
                        <td align="center"></td></tr>
                    <tr><td><img  th:alt="用户名" th:src="@{/image/user.PNG}" width="40" height="30"/></td><td><input type="text" name="name" value="请输入用户名" id="name"></td></tr>
                    <tr><td><img  th:alt="用户密码" th:src="@{/image/password.PNG}" width="40" height="30" /></td><td
  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值