最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - Unable to run Spring MVC Project with Tomcat 10.1.16 (Ubuntu) on IntelliJ IDEA - Stack Overflow

programmeradmin0浏览0评论

I am new to Spring MVC and i have some problems related to running the project with tomcat 10.1.16 (Ubuntu) on intellij idea, specifically as follows:

  • If I create the index.jsp file in the WEB-INF folder, when running it only shows the content in the index.jsp file.
  • If I delete the index.jsp and replace it in the MainController class with a RequestMapping to the home.jsp file, it immediately reports a 404 Not Found error.

This is my project structure:

project structure

And it works with just index.jsp file

and it gives error if i delete index.jsp

error

My Project: .git

I have tried many ways but can not run

I hope everyone can explain to me

发布评论

评论列表(0)

  1. 暂无评论