從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">