问答详情
源自:2-11 显示购物车

details.js中cookie的字符问题??

点开商品后报错

 Servlet.service() for servlet [jsp] in context with path [/ServletCartDemo] threw exception [java.lang.IllegalArgumentException: An invalid character [44] was present in the Cookie value] with root cause

java.lang.IllegalArgumentException: An invalid character [44] was present in the Cookie value

然后上网查是说cookie内容中不能包含逗号“,”,http://img3.mukewang.com/5e6f67a30001472a05280080.jpg

我就将逗号“,”改成了“#”,但是还是会报错http://img4.mukewang.com/5e6f68020001354907390083.jpg

请问怎么解决?


提问者:演绎法5919 2020-03-16 19:53

个回答