从eclipse迁移到idea,真是各种被坑。

今天遇到的jsp无法解析EL,页面直接就显示${xxx}好坑爹

Root cause:idea生成的web.xml 的web-app版本居然是2.3,2.3之后的版本才支持el表达式的

直接换成3.1的

  <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
         http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
           version="3.1">

 

posted on 2017-01-07 21:10  蛋尼  阅读(3271)  评论(1)    收藏  举报