資源簡介
下發郵箱驗證,可以用于激活賬戶,找回密碼,或者是綁定等操作;短信驗證可用于登錄,找回密碼,綁定等操作,方法實現簡單易懂

代碼片段和文件信息
package?controller;
import?com.fasterxml.jackson.databind.objectMapper;
import?org.springframework.stereotype.Controller;
import?org.springframework.web.bind.annotation.RequestMapping;
import?org.springframework.web.bind.annotation.ResponseBody;
import?service.MailService;
import?javax.annotation.Resource;
import?java.util.HashMap;
/**
?*?create?by?1311230692@qq.com?on?2018/10/10?13:08
?*?郵件發送控制層實現
?**/
@Controller
@RequestMapping(“/mail“)
public?class?MailController?{
????@Resource(name=“MailService“)
????private?MailService?mailService;
????/**
?????*?發送?HTML?賬戶激活郵件
?????*?*/
????@RequestMapping(“/send“)
????@ResponseBody
????public?String?send(String?email)?throws?Exception{
????????HashMap?map?=?new?HashMap<>();
????????objectMapper?objectMapper?=?new?objectMapper();
????????mailService.sendHtmlMail(email);
????????map.put(“result“?“success“);
????????return?objectMapper.writeValueAsString(map);
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-10-10?15:04??checkcode\
?????目錄???????????0??2018-10-10?15:07??checkcode\.git\
?????目錄???????????0??2018-10-10?15:04??checkcode\.git\branches\
?????文件??????????34??2018-10-10?15:05??checkcode\.git\COMMIT_EDITMSG
?????文件?????????306??2018-10-10?15:07??checkcode\.git\config
?????文件??????????73??2018-10-10?15:04??checkcode\.git\desc
?????文件??????????23??2018-10-10?15:04??checkcode\.git\HEAD
?????目錄???????????0??2018-10-10?15:04??checkcode\.git\hooks\
?????文件?????????478??2018-10-10?15:04??checkcode\.git\hooks\applypatch-msg.sample
?????文件?????????896??2018-10-10?15:04??checkcode\.git\hooks\commit-msg.sample
?????文件????????3327??2018-10-10?15:04??checkcode\.git\hooks\fsmonitor-watchman.sample
?????文件?????????189??2018-10-10?15:04??checkcode\.git\hooks\post-update.sample
?????文件?????????424??2018-10-10?15:04??checkcode\.git\hooks\pre-applypatch.sample
?????文件????????1638??2018-10-10?15:04??checkcode\.git\hooks\pre-commit.sample
?????文件????????1348??2018-10-10?15:04??checkcode\.git\hooks\pre-push.sample
?????文件????????4898??2018-10-10?15:04??checkcode\.git\hooks\pre-reba
?????文件?????????544??2018-10-10?15:04??checkcode\.git\hooks\pre-receive.sample
?????文件????????1492??2018-10-10?15:04??checkcode\.git\hooks\prepare-commit-msg.sample
?????文件????????3610??2018-10-10?15:04??checkcode\.git\hooks\update.sample
?????文件????????2956??2018-10-10?15:05??checkcode\.git\index
?????目錄???????????0??2018-10-10?15:04??checkcode\.git\info\
?????文件?????????250??2018-10-10?15:04??checkcode\.git\info\exclude
?????目錄???????????0??2018-10-10?15:05??checkcode\.git\logs\
?????文件?????????182??2018-10-10?15:05??checkcode\.git\logs\HEAD
?????目錄???????????0??2018-10-10?15:07??checkcode\.git\logs\refs\
?????目錄???????????0??2018-10-10?15:05??checkcode\.git\logs\refs\heads\
?????文件?????????182??2018-10-10?15:05??checkcode\.git\logs\refs\heads\master
?????目錄???????????0??2018-10-10?15:07??checkcode\.git\logs\refs\remotes\
?????目錄???????????0??2018-10-10?15:07??checkcode\.git\logs\refs\remotes\origin\
?????文件?????????145??2018-10-10?15:07??checkcode\.git\logs\refs\remotes\origin\master
?????目錄???????????0??2018-10-10?15:05??checkcode\.git\ob
............此處省略198個文件信息
- 上一篇:微信打飛機小游戲圖片音效資源
- 下一篇:使用AChartengine畫折線圖Demo
評論
共有 條評論