The method setCharacterEncoding(String) is undefined for the type HttpServletResponse

今天将以前做的一个web项目从不笔记本上移到台式机上,import项目后出现“The method setCharacterEncoding(String) is undefined for the type HttpServle”,导入tomcat下的lib包问题依旧。后来将lib包在Order and  Export中的位置上调(如下图)就可以了。可能是servlet包冲突导致。

 

 

----除了是jar位置,也可能是jar重复导致。

posted @ 2018-08-20 10:08  小泉哥  阅读(3371)  评论(0编辑  收藏  举报