ResponseUtil

package com.java.activiti.util;

import java.io.PrintWriter;

import javax.servlet.http.HttpServletResponse;


public class ResponseUtil {

    public static void write(HttpServletResponse response,Object o)throws Exception{
        response.setContentType("text/html;charset=utf-8");
        PrintWriter out=response.getWriter();
        out.println(o.toString());
        out.flush();
        out.close();
    }
}

 

posted @ 2018-12-11 14:58  我吗?  阅读(320)  评论(0编辑  收藏  举报