Spring MVC For Beginners

Video description

Developing your first Spring MVC web application is fun. In this course, you will learn the basics of developing a basic Todo management application using Spring MVC with login and logout functionalities. You will build the website step by step in 25 steps. This course would be a perfect first step as an introduction to Java web application development. You will be using Spring (dependency management), Spring MVC, Spring Security (authentication and authorization), BootStrap (styling pages), Maven (dependency management), Eclipse (IDE), and Tomcat web server. We will help you set up each one of these.

What You Will Learn

  • Build a basic Todo management application piece-by-piece in 25 Steps
  • Understand the Spring MVC architecture
  • Understand and use the basics of Spring MVC - DispatcherServlet, Controllers, ModelMap, ModelAndView, Views (JSP), JSTL, @RequestParam, and @SessionAttributes
  • Implement form binding and validation using Spring MVC
  • Use Spring Security for authentication and authorization
  • Build two basic Spring REST web services
  • Implement exception handling using @ControllerAdvice and @ExceptionHandler
  • Implement internationalization
  • Understand the basics of using Maven, Tomcat, and Eclipse
  • Use Maven for basic dependency management
  • Audience

    You are expected to be familiar with Java.

    You are not expected to have any experience with Eclipse, Spring, Maven, or Tomcat.

    We will help you to install Eclipse and get up and running with Maven and Tomcat.

    About The Author

    In28Minutes Official: Ranga Karanam is a seasoned technologist and architect with over two decades of expertise in programming, design, and architecture. He founded in28Minutes with the goal of helping students master cutting-edge cloud-native technologies such as AWS, Azure, Google Cloud, Docker, and Kubernetes. With 15 years of experience in Java programming and design, Ranga has collaborated with top banking clients worldwide.

    His passion for creating hands-on courses with real-world projects motivated him to develop the Step-By-Step series of courses that follow a problem-solution-based approach, with practical and real-world application examples.

    Ranga and his team at in28Minutes specialize in Java and related frameworks such as Spring, Spring Boot, Spring MVC, Struts, and Hibernate. They are committed to equipping learners with the skills and knowledge necessary to succeed in today’s rapidly evolving technology landscape.

Table of contents

  1. Chapter 1 : Introduction to the Course
    1. Introduction to the Course
    2. Overview of the Course
  2. Chapter 2 : Part 1: Basic Java Web Application with JSP and Servlets
    1. Step 01: Setting up Your First Java Web Application
    2. Step 01: Theory 1 - Maven and Magic
    3. Step 01: Theory 2 - What is a Servlet?
    4. Step 01: Theory 3 - Web Application Request Flow
    5. Step 01: Theory 4 - Understand Your First Servlet – LoginServlet
    6. Step 02: Create LoginServlet from Scratch Again and your First View
    7. Step 02: Theory - Play Time - Let's Try Breaking Things
    8. step 03: Passing Request Parameters using Get Method
    9. step 03: Theory - Introduction and End to Scriptlets
    10. Step 04: Disadvantages of Get Parameters
    11. Step 05: Your First Post Request
    12. Step 06: Your First Servlet doPost Method
    13. Step 07: Let's Add a Password Field
  3. Chapter 3 : Part 2: Spring MVC
    1. Step 10: Setting up Maven,Tomcat and Simple JEE Application
    2. Step 11: Setting up Spring MVC with 4 mini steps
    3. Step 12: Your First Spring MVC Controller
    4. Step 13: Part 1 - Your First Spring MVC View: ViewResolver
    5. Step 13: Part 2 - Theory Break - Spring MVC Architecture
    6. Part 3 - Play Break - Try Breaking Things
    7. Step 14: Add Logging Framework Log4j
    8. Step 15: Redirect to Welcome Page: ModelMap and @RequestParam
    9. Step 16: Use LoginService to Authenticate
    10. Step 17: Spring Autowiring and Dependency Injection
    11. Step 18: Display list of Todo's using TodoService
    12. Step 19: Java Web Application Architecture: Model 1, Model 2 and MVC
    13. Step 20: Spring Modules
    14. Step 21: @SessionAttributes: Session vs Request
    15. Step 22: Add a new Todo: redirect
    16. Step 23: JSTL forEach Tag
    17. Step 24: Bootstrap to Style Our Views
    18. Step 25: Delete Todo Functionality
    19. Step 26: HTML5 Validations and Formatting Todo Form
    20. Step 27: Part 1 - Adding Todo Command Bean
    21. Step 27: Part 2 - Validation using Hibernate Validator
    22. Step 28: Update Todo Functionality
    23. Step 29: Add Target Date Field: initBinder
    24. Step 30: JSP Fragments and Adding a Navigation Bar
    25. Step 31: Preparing for Spring Security
    26. Step 32: Setting up Spring Security
    27. Step 33: Implement Logout Functionality
    28. Part 1 - Theory behind Exception Handing
    29. Part 2 - Implementing Exception Handing
    30. Step 35: Internationalization with Spring MVC
    31. Step 36: Basics of Spring Rest Web Services
    32. Step 37: Spring Rest Web Services: @PathParam
  4. Chapter 4 : Congratulations
    1. Next Steps

Product information

  • Title: Spring MVC For Beginners
  • Author(s): In28Minutes Official
  • Release date: April 2018
  • Publisher(s): Packt Publishing
  • ISBN: 9781789139341