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.

View rendering and localization

View rendering and localization - Spring Tutorial

From the course: Complete Guide to Spring MVC

View rendering and localization

- [Instructor] View rendering and localization. Spring MVC offers a simple way to separate your controllers from the presentation layer by utilizing views. Here's a breakdown of how Spring manages view rendering and localization. So here in the picture you see I have view and ViewResolver highlighted. For the view interface, as we learn, this is the abstract contract that defines how views process data and prepare for presentation. It's the blueprint that different view technologies can implement like our Thymeleaf. The ViewResolver interface, this acts as the matchmaker. It takes a logical view name such as home or greeting or index and finds the actual view implementation to handle it. Let's walk through ViewResolver implementations. Spring MVC provides various ViewResolver implementations for different needs. So here's our opportunity to learn about them. One being AbstractCachingViewResolver. This cache is frequently used views for performance improvements. Next is…

Contents