code: public static void setCookie(String name, String value, int maxAge, boolean httpOnly, HttpServletRequest request, HttpServletResponse response) {
  		String domain = request.getServerName();
  		// String domain = serverName;
  		setCookie(name, value, maxAge, httpOnly, domain, response);
  	}
docs: 设置cookie</br>
  
  @param name cookie名称
  @param value cookie值
  @param maxAge 最大生存时间
  @param httpOnly cookie的路径
  @param request http请求
  @param response http响应