2018-03-20 interview about SPRINGMVC the role of the core controller Dispatcherserlvlet, the following statement is wrong?

Source: Internet
Author: User

With regard to the role of Spring MVC's core controller Dispatcherservlet, the following statement is wrong ()?

A. It is responsible for handling HTTP requests

B. Loading a configuration file

C. Implementing Business operations

D. Initializing a top-down Application object ApplicationContext

Wrong choice: A

Wrong choice reason: Look at the wrong topic meaning, mistakenly think is the right choice.

Positive selection: C

Positive selection Reason: Spring MVC is the module in spring, which implements the MVC design pattern of the web framework,

1. First the user sends the request

2. Request to the front controller (dispatcherservlet) of spring MVC, the front controller finds the handler that matches the URL based on the user's URL request processing Mapper, and returns an execution chain

3. The front controller then requests that the processor adapter call the appropriate handler for processing and return to the front controller a Modelandview

4. The front controller then requests the view parser to parse the returned logical view

5. The final front controller renders the returned view and loads the data into the request domain and returns it to the user.

Dispatcheservlet as the front-end controller of the SPRINGMVC, is responsible for accepting the user's request and returning the corresponding view to the user according to the user's request.

When the business operation is implemented at the service level, the C answer is wrong.

2018-03-20 interview about SPRINGMVC the role of the core controller Dispatcherserlvlet, the following statement is wrong?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.