微信

resXml = "<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml> ";
 BufferedOutputStream out = new BufferedOutputStream(response.getOutputStream());
        out.write(resXml.getBytes());
        out.flush();
        out.close();

response.setContentType("text/html");
response.setCharacterEncoding("UTF-8");

response.getWriter().println(msg);

支付宝

response.setContentType("text/html");
response.setCharacterEncoding("UTF-8");
PrintWriter out = response.getWriter();
out.println("success");  

 

posted on 2017-09-28 14:37  网络终结者  阅读(666)  评论(0编辑  收藏  举报