一、异常提示:The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
二、导致的原因:Tomcat 中的 servlet-api.jar、jsp-api.jar 和项目中的这些jar包版本冲突,容器不知道该使用哪个!
三、解决办法:不导入IntelliJ IDEA自带的jar包,导入tomcat中的jar包
本文详细介绍了在使用IntelliJ IDEA开发过程中遇到的异常提示 The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory 的原因及解决方案,主要涉及Tomcat中servlet-api.jar、jsp-api.jar与项目jar包版本冲突的问题,并提供了不导入IntelliJ IDEA自带jar包而导入tomcat中jar包的解决办法。
一、异常提示:The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
二、导致的原因:Tomcat 中的 servlet-api.jar、jsp-api.jar 和项目中的这些jar包版本冲突,容器不知道该使用哪个!
三、解决办法:不导入IntelliJ IDEA自带的jar包,导入tomcat中的jar包
8335
5037
2967
635
1万+

被折叠的 条评论
为什么被折叠?