@GetMapping("/yzZgw")
public void addField(HttpServletResponse response) throws IOException {
List<String> list = yzDzGw();// 要输出的数据
// 设置响应内容类型
response.setCharacterEncoding("UTF-8");
response.setContentType("text/html");
// 获取输出流对象
PrintWriter out = response.getWriter();
// 输出内容到浏览器
out.println("<html>");
out.println("<head><title>Output to Browser</title></head>");
out.println("<body>");
for (String msg : list) {
out.println(msg+"<br>");
}
out.println("</body></html>");
// 关闭输出流
out.close();
}