[JAVA] About the initial display of Spring Framework

When I did the initial display of the screen using Spring Framework, index.jsp was inevitably referenced. I will write it as a memorandum because I fell into a situation where the intended screen is not displayed.

I first suspected Controller. However, I thought that it was not a Controller because the initial display "/" was set in the value of @RequestMapping.

Next, I suspected web.xml, but there was no description that specifically referred to index.jsp.

Finally, I checked the web.xml of Tomcat. The welcome file was specified there.

It was improved by overwriting this description with web.xml on the project side.

When you fall into such a case, first check the web.xml referenced by tomcat. ..

Recommended Posts

About the initial display of Spring Framework
About the official start guide of Spring Framework
About DI of Spring ①
About the handling of Null
[Personal memo] About Spring framework
About Spring Framework context error
A review note of the Spring Framework Resource interface
A record of studying the Spring Framework from scratch
About the function of Spring Boot due to different versions
About the behavior of ruby Hash # ==
Spring Framework 5.0 Summary of major changes
About the basics of Android development
About binding of Spring AOP Annotation
About the role of the initialize method
Think about the 7 rules of Optional
[Ruby] Display the contents of variables
Filter the result of BindingResult [Spring]
Summary about the introduction of Device
About the log level of java.util.logging.Logger
About Spring ③
The story of encountering Spring custom annotation
Display text on top of the image
About the version of Docker's Node.js image
What is testing? ・ About the importance of testing
About the operation of next () and nextLine ()
About the error message Invalid redeclaration of'***'
Features of spring framework for java developers
About the treatment of BigDecimal (with reflection)
About the number of threads of Completable Future
About the mechanism of the Web and HTTP
[Java] [Spring] Test the behavior of the logger
Think about the combination of Servlet and Ajax
Summary of what I learned about Spring Boot
About the description order of Java system properties
About the idea of anonymous classes in Java
About Spring AOP
The story of raising Spring Boot 1.5 series to 2.1 series
Let's check the feel of Spring Boot + Swagger 2.0
Various correspondence table of Spring Framework and Spring Boot
About the method
[Ruby] Code to display the day of the week
Transaction management of the integrated framework "Apache Camel"
About next () and nextLine () of the Scanner class
How to display the result of form input
About the package
The official name of Spring MVC is Spring Web MVC
Specify the encoding of static resources in Spring Boot
[Ubuntu 20.04] Display the day of the week on the date / clock
[For beginners] DI ~ The basics of DI and DI in Spring ~
[Grails] About the setting area and the setting items of application.yml
Talking about the merits of database bind variables ((1) Introduction)
05. I tried to stub the source of Spring Boot
About the problem of deadlock in parallel processing in gem'sprockets' 4.0
I tried to reduce the capacity of Spring Boot
I want to display the name of the poster of the comment
I summarized the display format of the JSON response of Rails
Rails6: Input the initial data of ActionText using seed
Display the average value of the evaluation as a star
Until the use of Spring Data and JPA Part 1
A story about introducing Evolutions into the Play Framework
[Technical memo] About the advantages and disadvantages of Ruby