'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
Solution 1:[1]
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.
Solution 2:[2]
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..
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Ramkailash |
Solution 2 | Kaustubh Kallianpur |