Coder Social home page Coder Social logo

bikram-khyaju / springmvcstepbystep Goto Github PK

View Code? Open in Web Editor NEW

This project forked from in28minutes/springmvcstepbystep

0.0 1.0 0.0 457 KB

Spring MVC Video Tutorial for beginners - In 25 Small Steps

Home Page: www.in28minutes.com

License: MIT License

Java 100.00%

springmvcstepbystep's Introduction

First Spring MVC Application in 25 Easy Steps

Spring MVC Tutorial for Beginners

##Installing Eclipse and Java https://github.com/in28minutes/SpringIn28Minutes/blob/master/InstallationGuide-JavaEclipseAndMaven_v2.pdf

##Course Overview

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

###Steps 1 to 7 - Build a normal Web Application

  • Understand Basics of HTTP
  • HttpRequest - GET/POST, Request Parameters
  • HTTP Response - Response Status - 404,200,500 etc
  • Introduction to JSP, Servlets, Scriptlets and EL
  • HTML Form - Method, Action & Form Data
  • Understand Basics of using Maven, Tomcat and Eclipse
  • Using Request Attributes for passing Model between Servlet and View

###Steps 11 to XX : Use Spring MVC to Build Your First Web Application

  • 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.jsp. 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.xml
  • Step 35 : Let's add Internationalization - i18n
  • Step 36 : Basic Spring Rest Services - @RestController and jackson-databind
  • Step 37 : More Rest Services - @PathVariable

##Expectations

  • For taking this course, you should already know Java.
  • We expect NO prior experience with web development using Java.
  • We expect NO prior experience with Spring.

###Running Examples

##Step wise details

  • Step01.md : Up and running with a web app in Tomcat
  • Step02.md : First JSP
  • Step03.md : Adding a GET Parameter name
  • Step04.md : Adding another Get Parameter Password
  • Step05.md : Lets add a form
  • Step06.md : New Form and doPost
  • Step07.md : Adding Password, validation of userid/password

##Exercises

  • Split TodoController into different Controllers
  • Use same TodoController for both updates and new todo
  • Functionality to mark a Todo as complete

##Future Things To Do

  • Unit Tests - WTF - why are they not here in the first set?

##About in28Minutes

  • At in28Minutes, we ask ourselves one question everyday. How do we create more effective trainings?
  • We use Problem-Solution based Step-By-Step Hands-on Approach With Practical, Real World Application Examples.
  • Our success on Udemy and Youtube (2 Million Views & 12K Subscribers) speaks volumes about the success of our approach.
  • While our primary expertise is on Development, Design & Architecture Java & Related Frameworks (Spring, Struts, Hibernate) we are expanding into the front-end world (Bootstrap, JQuery, Angular JS).

###Our Beliefs

  • Best Course are interactive and fun.
  • Foundations for building high quality applications are best laid down while learning.

###Our Approach

  • Problem Solution based Step by Step Hands-on Learning
  • Practical, Real World Application Examples.
  • 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.
  • We will be developing a demo application in the course, which could be reused in your projects, saving hours of your effort.
  • All the code is available on Github, for most steps.

###Useful Links

###Other Courses

###Videos

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

springmvcstepbystep's People

Contributors

in28minutes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.