Home > Back-end >  The servlet, tomcat, for springmvc?
The servlet, tomcat, for springmvc?

Time:10-06

1. The servlet is a specification, spring MVC implementation of the specification?
2. Tomcat is a container, I know, but how do you explain tomcat and for springmvc relationship? Who can image analogy,

CodePudding user response:

Tomcat's server

CodePudding user response:

Tomcat server, run projects to you, for springmvc framework is applied to your project control layer

CodePudding user response:

_ gee chut reference 2 floor response:
Tomcat server, run projects to you, for springmvc framework is applied to your project control layer

Who is a browser requests received????? Tomcat to for springmvc processing after received?

CodePudding user response:

Tomcat won't help you receive, is for springmvc receiving

CodePudding user response:

Such as you want from your small town to the city,

When you choose to be a car, you want to go to the ticket hall, and then select the different models of cars,

The ticket hall is similar to a tomcat

Different model car is for springmvc

This car is the servlet

For springmvc just as powerful cars

CodePudding user response:

You can understand for the spring MVC is just more advanced packaging the servlet tomcat just a server to run project project can use can also need not

CodePudding user response:

Servlet is one of the three component Tomcat, spring MVC is a conform to the idea of MVC web framework, for springmvc principle is to provide a dispatchservlet, the servlet is configured to intercept all requests, is decided by dispatchservlet method mapping, method calls, data display and so on process