code: public static boolean addCookie(HttpServletResponse response, String name, String value, int expiry, String uri) {
          Cookie cookie = new Cookie(name, value);
          if (expiry > 0) {
              cookie.setMaxAge(expiry);
          }
          if (Checker.isNotEmpty(uri)) {
              cookie.setPath(uri);
          }
          return addCookie(cookie, response);
      }
docs: 添加Cookie
  
  @param response {@link HttpServletResponse}
  @param name Cookie名
  @param value Cookie值
  @param expiry 有效期
  @param uri 路径
  
  @return {@link Boolean}
  
  @since 1.0.8