【IDEA】启动tomcat后,访问servlet页面先500后404错误的一种解决办法
在欧阳燊老师的帮助下解决了该问题
IDEA版本:IntelliJ IDEA 2022.3.2 (Ultimate Edition)
Servlet Spec:3.1
点下图中的“Edit Configurations”进入运行配置(Run/Debug Configurations)设置页。
在Tomcat Server中使用Tomcat 8.0.53、Tomcat 8.5.87进行服务部署后,访问servlet页面均出现了第一次500,之后404的错误。
换成在Smart Tomcat中使用Tomcat后,servlet页面可正常访问,问题解决。
Keep it simple and stupid