O'Reilly logo
live online training icon Live Online training

Spring MVC Fundamentals

Building Web Applications and RESTful Web Services

Ken Kousen

Learn to create flexible and lightweight web apps and RESTful web services with Spring MVC.

The Spring Framework is one of the most popular open-source libraries in the Java world. From its inception it made creating web applications flexible and straight-forward, and later added the same ease of use for RESTful web services. Spring Boot then came along and streamlined both processes.

This course covers the process of creating, deploying, and maintaining web applications and RESTful web services using the Spring MVC module. In addition to building basic applications, this course also discusses all the underlying features that make the simple development possible, in order to help you understand how Spring does its job. In the end, you'll be able to build web and REST applications with Spring to suit your needs.

What you'll learn-and how you can apply it

By the end of this live, hands-on, online course, you’ll understand:

  • The architecture of Spring MVC applications
  • The extensive simplifications provided by Spring Boot
  • Spring layers of controllers, handler mappings, and template engines

And you’ll be able to:

  • Build and configure Spring MVC web applications
  • Test and deploy both web apps and restful web services
  • Apply basic security to web resources

This training course is for you because...

  • You are an experienced Java developer who is interested in how Spring MVC can improve your web apps.
  • You are a team member or leader who needs to build and support applications using the Spring framework.
  • You are curious about how Spring Boot can simplify and improve both web applications and RESTful web services.


  • Java, some exposure to the Spring Framework

Recommended preparation:

Recommended follow-up:

About your instructor

  • Ken Kousen is the author of the books Kotlin Cookbook (O'Reilly),  Modern Java Recipes (O'Reilly), Gradle Recipes for Android (O’Reilly) and Making Java Groovy (Manning), as well as O’Reilly video courses in Android, Groovy, Gradle, Advanced Java, and Spring. Ken is a Java Champion. He is a regular speaker on the No Fluff, Just Stuff conference tour and a JavaOne Rock Star, and has spoken at conferences all over the world. Through his company, Kousen I.T., Inc., he has taught software development training courses to thousands of students.


The timeframes are only estimates and may vary according to how the class is progressing

Spring MVC Architecture (20 minutes)

  • Lecture:
    • Major concepts
    • Processing requests and responses
    • Configuration options
    • Test support

Spring Boot Simplifications (40 minutes)

  • Lecture:
    • Spring MVC auto-configuration
    • HTTP message converters
    • Custom JSON serializers
    • Static content
    • Template engines
    • Exercise: Basic web app and RESTful web service
  • Q&A
  • Break (10 minutes)

Special Bean Types (20 minutes)

  • Lecture:
    • Handler mappings
    • View resolvers
    • Filters and interceptors
    • Exception resolvers

Responding to Requests (40 minutes)

  • Lecture:
    • Types of view resolvers
    • Redirects
    • Forwards
    • Content negotiation
  • Q&A
  • Break (10 minutes)

Annotated Controllers (30 minutes)

  • Lecture:
    • Request mapping
    • Handler methods
    • Model objects
    • Data binding
  • Exercise: Forwards, redirects, and content negotiation
  • Q&A

Functional Endpoints (30 minutes)

  • Lecture:
    • Handler functions
    • Router functions
    • Filters
  • Q&A
  • Break (10 minutes)

Basic Web Security (20 minutes)

  • Lecture:
    • Authentication
    • Authorization
    • Java Configuration
  • Testing

Additional Topics (30 minutes)

  • Lecture:
    • Logging
    • Asynchronous requests
    • CORS
    • HTTP Caching
    • HTTP/2
  • Exercise: Securing your application
  • Q&A