servlet 画验证码

流沙 | JAVA | 2016-07-08
package com.itheima.response; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.io.IOException; import java.util.Random; import javax.imageio.ImageIO; import javax.servlet.ServletException;...

阅读全文>>

ė426次浏览 60条评论 0 servlet 验证码

servlet读取Context 文件

流沙 | Android | 2016-07-07
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String ip = request.getRemoteAddr(); System.out.println(ip); //读取 3.txt String path3 = getServletContext().getRealPath("/WEB-INF/5.txt"); System.out.print...

阅读全文>>


Ɣ回顶部