Skip to main content

DispatcherServlet Initialization

Learn DispatcherServlet Initialization (DispatcherServlet, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes Initialization : when the servlet container starts the servlet, init() runs once, builds the web context and sets up all strategies. Boot registers it with DispatcherServletRegistrationBean ; by default it starts lazily on the first request unless load-on-startup is set, which Boot does. Result : after init the servlet knows its handler mappings, adapters, resolvers and can serve requests.

More lessons in DispatcherServlet