From the course: Complete Guide to Spring MVC
Unlock this course with a free trial
Join today to access over 24,600 courses taught by industry experts.
Request processing and handling - Spring Tutorial
From the course: Complete Guide to Spring MVC
Request processing and handling
- [Instructor] Requests, processing and handling. As we have learned, the dispatcher servlet in Spring MVC plays a crucial role in processing HTTP requests. Here are configuration options that you have at your disposal. Starting off with XML-based configuration. The dispatcher servlet is registered with the servlet name dispatcher. The load on startup value of one ensures it's loaded when the application starts. And the /url-pattern means the dispatcher servlet will handle all requests. Your next option is Java-based configuration with web application initializer. The web application initializer allows programmatic configuration of the web application. The annotation config web application context loads the application context using annotations and the dispatcher servlet is created and registered with the Servlet context. And your third option is the Java based configuration with abstract annotation config dispatcher servlet initializer. Ooh, that's a handful. So here the class…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.