Springboot + web 无法访问jsp页面 type=Internal Server Error, status=500 解决

本文介绍了在Springboot + Web项目中遇到无法访问jsp页面,出现type=Internal Server Error, status=500问题的解决方法。关键步骤包括检查jsp相关jar包是否已导入pom.xml并成功应用,以及检查Springboot内置Tomcat的web配置和.properties文件设置。问题的根源在于某个引入的库与jsp存在冲突,通过注释该库解决了问题。" 113645115,10546508,使用Python-docx创建Word文档指南,"['Python', '文档处理', 'word操作', '编程工具', '数据导出']

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Springboot + web 无法访问jsp页面 type=Internal Server Error, status=500 解决

在这里插入图片描述

查看jsp相关jar包是否导入

pom.xml,引入依赖包;

<dependency>  
       <groupId>org.springframework.boot</groupId>  
       <artifactId>spring-boot-starter-tomcat</artifactId>  
     <scope>provided</scope>  
 </dependency>  

 <dependency>  
     <groupId>org.apache.tomcat.embed</groupId>  
     <artifactId>tomcat-embed-jasper</artifactId>  
     <scope>provided</scope>
 </dependency> 

到maven 查看是否应用成功
在这里插入图片描述
查看springboot内置tomcat配置

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值