码迷,mamicode.com
首页 > 其他好文 > 详细

111111111

时间:2016-06-15 09:17:45      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:

package jxf.servlet;
import java.io.IOException;
import java.util.Date;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
 
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class TestServlet extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response)
             throws ServletException, IOException {
         response.getWriter().write(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
        System.out.println("this is TestServlet");
    }
}

 

111111111

标签:

原文地址:http://www.cnblogs.com/SM-t/p/5586154.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!