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 - 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…
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.
Contents
-
-
-
-
-
-
-
(Locked)
Functional endpoints overview3m 58s
-
HandlerFunction overview6m 12s
-
(Locked)
HandlerFunction: ServerRequest & ServerResponse7m 9s
-
(Locked)
HandlerFunction: Handler classes6m 49s
-
(Locked)
HandlerFunction: Validation5m 45s
-
(Locked)
RouterFunctions and routing5m 7s
-
(Locked)
Serving static resources4m 30s
-
(Locked)
Running a server6m 10s
-
(Locked)
Filtering handler functions5m 50s
-
(Locked)
-
-
-
-
-
-
-
-
-
-