maven使用jstl表達式和The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application解決


 

 

maven 中使用jstl表達式中出現如上錯誤。原因:

1.由於在maven中的web項目沒有自動依賴jstl的jar

未在pom文件中添加jstl相關的jar

 1       <!--jstl表達式-->
 2       <dependency>
 3           <groupId>jstl</groupId>
 4           <artifactId>jstl</artifactId>
 5           <version>1.2</version>
 6       </dependency>
 7       <dependency>
 8           <groupId>taglibs</groupId>
 9           <artifactId>standard</artifactId>
10           <version>1.2</version>
11       </dependency>

 

在這里添加上面兩個jar的依賴就可以解決


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM