old: text/html;charset=utf-8, new: text/html; charset=utf-8

今天JSP页面报错:

HTTP Status 500 - /manage/top.jsp (line: 1, column: 2) Page directive: illegal to have multiple occurrences of contentType with
 different values (old: text/html;charset=utf-8, new: text/html; charset=utf-8)


一看就是编码问题,找了半天都没问题啊 都是utf-8 ,找了半天 挨个页面检查了一遍都是utf-8,最后瞪大眼睛好好看了看 old: text/html;charset=utf-8, new: text/html; charset=utf-8

old中charset=utf-8前面没有空格,new中charset=utf-8前面有个空格,最后找到old删掉空格重新运行  成功!


教训: 一定要睁大眼睛  一定要仔细   

都是泪啊!

你可能感兴趣的:(java,web)