Cov txheej txheem:

Dab tsi yog chav kawm hauv paus ntawm tag nrho Spring MVC controllers?
Dab tsi yog chav kawm hauv paus ntawm tag nrho Spring MVC controllers?

Video: Dab tsi yog chav kawm hauv paus ntawm tag nrho Spring MVC controllers?

Video: Dab tsi yog chav kawm hauv paus ntawm tag nrho Spring MVC controllers?
Video: Tshuaj theem vim li cas thiaj tau nqi ?/ Siv kho mob dab tsi?/paris polyphylla use for? 2024, Kaum ib hlis
Anonim

Tag nrho Spring MVC controllers los yog siv Tus tswj ncaj qha lossis txuas ntxiv los ntawm ib qho ntawm cov muaj chav kawm hauv paus kev siv xws li AbstractController, SimpleFormController, MultiActionController, lossis AbstractWizardFormController.

Tsis tas li ntawd, muaj pes tsawg hom controllers nyob rau Spring MVC?

Ntawm no yog cov npe ntawm cov tswj kev tswj xyuas uas tuaj nrog Spring MVC module:

  • SimpleFormController.
  • AbstractController.
  • AbstractCommandController.
  • CancellableFormController.
  • AbstractCommandController.
  • MultiActionController.
  • ParameterizableViewController.
  • ServletForwardingController.

Ib yam li ntawd, dab tsi yog qhov kev tswj hwm pem hauv ntej ntawm Spring MVC? A pem hauv ntej maub los txhais tau tias yog a tus tswj uas ua haujlwm txhua qhov kev thov rau Web Application. DispatcherServlet servlet yog tus pem hauv ntej maub los hauv Spring MVC uas cuam tshuam txhua qhov kev thov thiab tom qab ntawd xa cov lus thov mus rau qhov tsim nyog tus tswj.

Yog li ntawd, dab tsi yog cov tswj hauv Spring MVC?

Caij nplooj ntoos hlav Web Model-Saib- Tus tswj Cov ntaub ntawv tuaj yeem yog ib qho khoom lossis cov khoom sib sau. Tus tswj - A tus tswj muaj cov kev lag luam logic ntawm ib daim ntawv thov. Ntawm no, @ Tus tswj annotation yog siv los kos cov chav kawm ua tus tus tswj . Saib - Ib qho saib sawv cev rau cov ntaub ntawv muab hauv ib hom ntawv tshwj xeeb.

Dab tsi yog qhov ntws ntawm Spring MVC?

Caij nplooj ntoos hlav MVC Flow Daim duab. MVC yog tus qauv tsim uas muab cov kev daws teeb meem rau txheej ib daim ntawv thov los ntawm kev sib cais ua lag luam (Model), Kev nthuav qhia (Saib) thiab Tswj Ntws (Controller).

Pom zoo: