The method getContextPath() is undefined for the type ServletContext

我出错时,到网上说得是版本问题,我找到对应的包javax-servlet5.1.12.jar,把它删了,居然不报错了,原来是和包servlet-2_5-api.jar冲突了

posted on 2016-06-30 13:41  路人甲乙丙丁张三  阅读(2018)  评论(0)    收藏  举报