SpringMVC中如何实现访问WEB-INF目录下jsp文件的详细步骤?

2026-05-16 03:100阅读0评论SEO教程
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计369个文字,预计阅读时间需要2分钟。

SpringMVC中如何实现访问WEB-INF目录下jsp文件的详细步骤?

当输入localhost:8080/项目名+浏览器弹出未知神马错误+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出现这个问题时,百度搜索显示如下:

当输入localhost:8080/项目名

浏览器弹出不知道神马错误

The absolute uri: java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

出现这个问题百度的下说是将jstl-impl.jar包放到lib目录下就可以解决了,

尝试后确实可以解决问题。

然而,当我把这个jar包从我项目中删除后再访问又出现不一样的报错

java.lang.NoClassDefFoundError: org/apache/taglibs/standard/tag/rt/core/SetTag

也是缺少jatl-impl.jar包但是你给我报不一样错误干嘛呢

Message:The server encountered an internal error that prevented it from fulfilling this request.

大概意思是:服务器遇到内部错误,阻止其执行此请求。

项目中web.xml配置。

阅读全文

本文共计369个文字,预计阅读时间需要2分钟。

SpringMVC中如何实现访问WEB-INF目录下jsp文件的详细步骤?

当输入localhost:8080/项目名+浏览器弹出未知神马错误+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出现这个问题时,百度搜索显示如下:

当输入localhost:8080/项目名

浏览器弹出不知道神马错误

The absolute uri: java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

出现这个问题百度的下说是将jstl-impl.jar包放到lib目录下就可以解决了,

尝试后确实可以解决问题。

然而,当我把这个jar包从我项目中删除后再访问又出现不一样的报错

java.lang.NoClassDefFoundError: org/apache/taglibs/standard/tag/rt/core/SetTag

也是缺少jatl-impl.jar包但是你给我报不一样错误干嘛呢

Message:The server encountered an internal error that prevented it from fulfilling this request.

大概意思是:服务器遇到内部错误,阻止其执行此请求。

项目中web.xml配置。

阅读全文