Spring MVC For Beginners : Build Java Web App in 25 Steps

Spring MVC Tutorial for Beginners with a Hands-on Step by Step Approach - 25 Steps
4.5 (468 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
2,667 students enrolled Bestselling in Spring
$19
$50
62% off
Take This Course
  • Lectures 50
  • Length 6 hours
  • Skill Level Beginner Level
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 1/2016 English

Course Description

Reviews

"Great course to get basic knowledge of Spring MVC. Instructor is great, explanations are clear and simple. I recommend it to everyone interested in basics of java web. Thanks!"

"The author explain everyting nicely. App build from scratch All the spring magic and feature explained."

"Speechless! Finally something of quality that's worth buying. Please release more on Spring like Rest, Hadoop etc. Also don't forget Play framework."

Course Description

Developing your first Spring MVC Web Application is fun.

In this course, you will learn the basics developing a Basic Todo Management Application using Spring MVC with Login and Logout functionalities.

You will build the website step by step - in more than 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 (dependencies management), Eclipse (IDE) and Tomcat Web Server. We will help you set up each one of these.

You will learn about

  • DispatcherServlet
  • Basic Todo Management Application with Login/Logout
  • Model, Controllers, ViewResolver and Filters
  • Forms - DataBinding, Validation
  • Annotation based approach - @RequestParam, @PathVariable, @ModelAttribute, @SessionAttributes etc
  • Bootstrap to style the page
  • Spring Security
  • Internationalization
  • Exception Handling
  • Basic REST Services

Step Wise Details

  • Step 11 : Configure application to use Spring MVC
  • Step 12 : First Spring MVC Controller, @ResponseBody, @Controller
  • Step 13 : Redirect to Login JSP - LoginController, @ResponseBody and View Resolver
  • Step 14 : DispatcherServlet and Log4j
  • Step 15 : Show userid and password on the welcome page - ModelMap and @RequestParam
  • Step 16 : LoginService and Remove all JEE Servlets based code
  • Step 17 : Spring Auto-wiring and Dependency Management - @Autowired and @Service
  • Step 18 : Create TodoController and list-todos view. Make TodoService a @Service and inject it.
  • Step 19 : Web Application Architecture
  • Step 20 : More about Spring Framework
  • Step 21 : Session vs Model vs Request - @SessionAttributes
  • Step 22 : New Todo and redirect to a Controller
  • Step 23 : JSTL
  • Step 24 : Bootstrap - using Webjars
  • Step 25 : Let's delete a Todo
  • Step 26 : Use Bootstrap to format and add HTML5 Validations
  • Step 27 : Introduce JSR 349 Validations using Hibernate Validator - First Command Bean.
  • Step 28 : Let's update a Todo
  • Step 29 : Let's add a Target Date for Todo - Use initBinder to Handle Date Fields
  • Step 30 : Navigation bar and JSP Fragments
  • Step 31 : Let's prepare for Spring Security
  • Step 32 : Initial Setup for Spring Security
  • Step 33 : Refactor and add Logout Functionality using Spring Security
  • Step 34 : Exception Handling in Spring MVC - @ControllerAdvice, @ExceptionHandler and error-page in web dot xml
  • Step 35 : Let's add Internationalization - i18n
  • Step 36 : Basic Spring Rest Services - @RestController and jackson-databind
  • Step 37 : More Rest Services - @PathVariable

We do NOT interact with a Database in this Beginner’s Course.

What are the requirements?

  • You are looking forward to developing your first Java Web Application
  • You have some experience with Java Web Applications but did not completely understand the basics
  • You want to learn basics of Spring MVC and gain expertise at it
  • You want to implement advanced features with Spring MVC like Exception Handling, Form Binding and Validation, Internationalization and Spring Security
  • We will use an In Memory List as Data Store in this Beginner's Course

What am I going to get from this course?

  • Build a Basic Todo Management Application piece by piece in 25 Steps.
  • Understand Spring MVC Architecture
  • Understand and use 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 2 Basic Spring Rest Web Services
  • Implement Exception Handling using @ControllerAdvice and @ExceptionHandler
  • Implement Internationalization
  • Understand Basics of using Maven, Tomcat and Eclipse
  • Use Maven for Basic Dependency Management
  • Style web applications with Bootstrap (Basics)

What is the target 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 install Eclipse and get up and running with Maven and Tomcat

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Introduction to the Course
Congratulations
Article
Introduction to the Course
Preview
02:22
Overview of the Course
05:41
Section 2: Part 1 : Basic Java Web Application With JSP and Servlets
Step 01 : Setting up Your First Java Web Application
09:31
Step 01 : Theory 1 - Maven and Magic
06:17
Step 01 : Theory 2 - What is a Servlet?
02:13
Step 01 : Theory 3 - Web Application Request Flow
Preview
07:33
Step 01 : Theory 4 - Understand Your First Servlet - LoginServlet
06:37
Step 02 : Create LoginServlet From Scratch Again and Your First View
12:37
Step 02 : Theory - Play Time - Let's Try Breaking Things
03:57
Step 03 : Passing Request Parameters using Get Method
09:12
Step 03 : Theory - Introduction and End to Scriptlets
05:14
Step 04 : Disadvantages of Get Parameters
04:05
Step 05 : Your First Post Request
06:53
Step 06 : Your First Servlet doPost Method
05:10
Step 07 : Lets Add a Password Field
09:10
Section 3: Part 2 : Spring MVC
07:29

Code on Github : https://github.com/in28minutes/SpringMvcStepByStep

Step 11 : Setting up Spring MVC with 4 mini steps
17:10
Step 12 : Your First Spring MVC Controller
Preview
10:22
Step 13 : Part 1 - Your First Spring MVC View : ViewResolver
11:11
Step 13 : Part 2 - Theory Break - Spring MVC Architecture
Preview
02:29
Step 13 : Part 3 - Play Break - Try Breaking Things
03:59
Step 14 : Add Logging Framework Log4j
07:56
Step 15 : Redirect to Welcome Page : ModelMap and @RequestParam
13:51
Step 16 : Use LoginService to Authenticate
08:51
Step 17 : Spring Autowiring and Dependency Injection
06:15
Step 18 : Display list of Todo's using TodoService
14:17
Step 19 : Java Web Application Architecture : Model 1, Model 2 and MVC
10:10
Step 20 : Spring Modules
05:30
Step 21 : @SessionAttributes : Session vs Request
12:56
Step 22 : Add a new Todo : redirect
12:15
Step 23 : JSTL forEach Tag
09:42
Step 24 : Bootstrap to Style Our Views
12:13
Step 25 : Delete Todo Functionality
07:07
Step 26 : HTML5 Validations and Formatting Todo Form
08:15
Step 27 : Part 1 - Adding Todo Command Bean
08:30
Step 27 : Part 2 - Validation using Hibernate Validator
Preview
09:12
Step 28 : Update Todo Functionality
13:22
Step 29 : Add Target Date Field : initBinder
06:27
Step 30 : JSP Fragments and Adding a Navigation Bar
08:05
Step 31 : Preparing for Spring Security
03:22
Step 32 : Setting up Spring Security
06:32
Step 33 : Implement Logout Functionality
07:18
Step 34 : Part 1 - Theory Behind Exception Handing
05:39
Step 34 : Part 2 - Implementing Exception Handing
10:28
Step 35 : Internationalization with Spring MVC
08:54
Step 36 : Basics of Spring Rest Web Services
Preview
04:22
Step 37 : Spring Rest Web Services : @PathParam
02:14
Next Steps
00:59
Our Best Courses : Bonus Lecture
Article

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

in28Minutes Official, Architect, Programmer and Trainer

About Me

I'm Ranga Karanam, an Architect with 15 Years of Java programming and design  with major banking clients across the world. 

We started in28Minutes with the aim to create Hands-on Courses with Real World Projects. Step-By-Step series of Courses is one of our creations.

About in28Minutes

We use Problem-Solution based Step-By-Step Hands-on Approach With Practical, Real World Application Examples.

While our primary expertise is on Development, Design & Architecture of Java & Related Frameworks (Spring, Spring MVC, Struts, Hibernate) we are expanding into the front-end world (Bootstrap, JQuery, Angular JS).

Our Beliefs

Best Courses are interactive and fun.

Foundations for building high quality applications are best laid down while learning.

Our Approach

We love open source and therefore, All our code is open source too and available on Github.

We use 80-20 Rule. We discuss 20% things used 80% of time in depth. We touch upon other things briefly equipping you with enough knowledge to find out more on your own.

Problem Solution based Step by Step Hands-on Learning.

Ready to start learning?
Take This Course