UUID生成唯一激活码

使用UUID生成激活码UUID uuidUUID.randomUUID();String activeCodeuuid.toString().replace("-", ""); 注册

                // 使用UUID生成激活码
				UUID uuid = UUID.randomUUID();
				String activeCode = uuid.toString().replace("-", "");

	                // 注册成功,则发送邮件,让用户激活
					String emailMsg = "<p>恭喜您注册成功,请点击下面的连接进行激活账户</p>" + 
					"<p><a href='http://localhost:8099/IGeekShop/active?activeCode="
							+ activeCode + "'>" + 
					"http://localhost:8099/IGeekShop/user?method=acitve&activeCode=" + 
                     activeCode + "</a></p>";

 

发布者:admin,转转请注明出处:http://www.yc00.com/web/1754699572a5193467.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信