为什么 syso输出的内容会在控制台出现,为不是网面上?不懂。大神请指教啊。。。还是说,servlet只能使用jsp内置对象才可以输出内容吗?
public class HelloServlet extends HttpServlet {
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
System.out.println("GET()方法使用");
//使用printwrite创建对象调用
PrintWriter outer =response.getWriter();
response.setContentType("text/html;charset=utf-8");
outer.println("<strong> mylove <strong><br>");
System.out.println("四月是你的谎言");
}