简体   繁体   中英

what is the default page for spring-mvc application

IF i have this line in web.xml then i know which is landing page

<welcome-file-list>
  <welcome-file>redirect.jsp</welcome-file>
</welcome-file-list>

Now i want to know that if i don't use that then which is the landing page

I am using Spring STS IDE for developing spring mvc application. It's provide home.jsp page which is the default page in spring mvc and you can change easily inside web.xml file of the Spring MVC project Another option you can put your index.jsp page inside webapp folder it's bydefault run first.

You have the whole documentation here !!!

It has got all the answers you may need in your future too.

Usually in an MVC Application, The '/' or 'homepage' is usually not directly called. All requests in an MVC Application should be sent to a dispatcher - servlet who handles all incoming Front End requests and forwards them to respective controllers. You can find a basic Spring MVC Code to create an app Here .. MVC模型

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM