I am developing a Spring/Spring MVC application where everything is working properly but I have some doubts about the application startup.
Right now, when Tomcat starts and the application starts I am receiving a render request on the “home” controller even I don’t access the site. It’s like it is done automatically. Is this correct? Can this be disabled and is there any reason why this is done by default?
Thanks in advance.
I found out that when the defined DispatcherServlet is mapped to * like this:
You always get a request to your “home” controller that is mapped to /