Commit 6e0db497 authored by yanzg's avatar yanzg

异常处理显示

parent a30cd39c
...@@ -88,7 +88,7 @@ public class CookiesHelper { ...@@ -88,7 +88,7 @@ public class CookiesHelper {
String toValue = URLEncoder.encode(value, CHARSET); String toValue = URLEncoder.encode(value, CHARSET);
if (toValue.length() < ITEM_MAX_SIZE) { if (toValue.length() < ITEM_MAX_SIZE) {
// 创建cookie对象 // 创建cookie对象
Cookie cookie = new Cookie(key, value); Cookie cookie = new Cookie(key, toValue);
// 服务器把cookie响应给客户端,所有的cookie对象,都会在服务器端创建,通过http响应给客户端(浏览器) // 服务器把cookie响应给客户端,所有的cookie对象,都会在服务器端创建,通过http响应给客户端(浏览器)
response.addCookie(cookie); response.addCookie(cookie);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment