package com.aaa.controller; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.aaa.util.GetMessageCode; /** * * @Title:SendSms * @Description:接收页面传过来的电话号码 * @author:罗雨 * @Date 2017年12月10日 下午9:37:16 */ @WebServlet("/sendSMS") public class SendSms extends HttpServlet { @Override public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { String phone=req.getParameter("phone"); //根据获取到的手机号发送验证码 String code=GetMessageCode.getCode(phone); System.out.println(code); resp.getWriter().print(code); } }
最近下载更多
936684178 LV2
2023年6月27日
annazhang LV29
2023年4月8日
快乐的程序员 LV25
2023年1月21日
二郎滩的大帅 LV3
2022年9月7日
陈王子 LV12
2022年7月18日
微信网友_5916283298041856 LV4
2022年6月7日
yangyue123 LV1
2022年5月17日
zz1230012300 LV11
2022年3月21日
asfadgaegseg LV2
2022年2月26日
javalbc123 LV1
2022年2月24日