From the course: Complete Guide to Spring MVC
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Configuring Spring MVC applications - Spring Tutorial
From the course: Complete Guide to Spring MVC
Configuring Spring MVC applications
- [Instructor] Configuring Spring MVC applications, specifically for asynchronous request processing. Spring MVC, a synchronous request processing, allows your application to handle long running tasks without blocking Servlet threads and significantly improving scalability and performance in high concurrency scenarios. Proper configuration at both the Servlet container and spring MVC framework levels is essential to leveraging these capabilities effectively. For Servlet container configuration, the Servlet container must be explicitly configured to enable asynchronous processing. This ensures setting the async supported flag to be true and ensuring filters support asynchronous dispatch. So we'll look at an example of doing this in both a Java based configuration as well as XML based. Here in this Java based configuration, we're using the abstract annotation, config dispatcher server initializer. This is where async support is automatically enabled. Here's how we're configuring it. The…
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.