EasyCaptcha/src/main/java/com/wf/captcha/servlet/CaptchaServlet.java

30 lines
831 B
Java
Raw Normal View History

2018-02-11 14:53:59 +08:00
package com.wf.captcha.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
2018-05-14 09:59:41 +08:00
import com.wf.captcha.utils.CaptchaUtil;
2018-02-11 14:53:59 +08:00
2018-05-14 09:59:41 +08:00
/**
* 验证码servlet
* Created by 王帆 on 2018-07-27 上午 10:08.
2018-05-14 09:59:41 +08:00
*/
2018-02-11 14:53:59 +08:00
public class CaptchaServlet extends HttpServlet {
2018-07-25 20:52:29 +08:00
private static final long serialVersionUID = -90304944339413093L;
2018-02-11 14:53:59 +08:00
2018-07-25 20:52:29 +08:00
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
CaptchaUtil.out(request, response);
2018-07-25 20:52:29 +08:00
}
2018-02-11 14:53:59 +08:00
2018-07-25 20:52:29 +08:00
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doGet(request, response);
}
2018-05-14 09:59:41 +08:00
2018-02-11 14:53:59 +08:00
}