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

 

相关文章:

  • 2021-10-04
  • 2021-12-18
  • 2022-01-19
  • 2022-12-23
  • 2021-07-04
猜你喜欢
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2021-05-19
相关资源
相似解决方案