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.

Serving static resources

Serving static resources - Spring Tutorial

From the course: Complete Guide to Spring MVC

Serving static resources

- [Instructor] Serving static resources. In this lesson, we're going to learn more about serving static resources in a Spring MVC application. I say we're going to learn more because you've already done so in your Hello Worlds app by serving a static HTML page. So here we're going to explore how to configure additional images, leverage caching, and versioning to optimize performance. As I mentioned already in your resources file for your Hello World app, you have served static HTML pages. So as an example, you should have either greeting, index, form or other HTML pages at your disposal. So here we'll go more deep into those best practices and additional functionalities available. If you skipped the example in the beginning, I'll answer here what are static resources in Spring MVC. Static resources are files that are served to the client as is without additional server side processing. So those include images, CSS style sheets, JavaScript files, as well as those static HTML files…

Contents