SlideShare une entreprise Scribd logo
1  sur  22
@kaviddiss | www.kaviddiss.com
David Kiss
Create Your Very First Spring Application
Building Web Applications Using Java and
Spring Framework (Module 1)
What to Expect
A practical guide to get up and running quickly on creating
Spring-based web application from scratch
Using latest versions of Java, Spring Framework (4.x), Spring
Boot (v1.2.x), Spring Security, Spring Data JPA, Thymeleaf
and Maven 3 frameworks
What Not to Expect
XML configurations
Outdated versions of Java frameworks
Textbook walk-through of all the Spring components on Earth
Why Using Spring Framework
Spring is a mature yet still innovative open-source framework
Spring has a very active community
Spring is light-weight - can run without a JEE server
Spring makes you productive - no requirement for XML
configuration
etc.CachingMessaging
SQL and NoSQL
databases
SecurityMVC
Spring Gets You Covered With...
Companies Using Spring Framework
Our First Web Application
Time to Create Some Code
Demo
Now we’re going to create a URL
shortener web application...
Generate the Project at http://start.spring.io
And Implementing the Web Application...
After Generating the Project
Here’s The Final List of Files
and Walk Through the Code
Now Let’s See the Details
Starting a Web Application Cannot Be
Easier
Mapping URLs to Java Methods #1
shortener.html - Using Thymeleaf Template
Engine
Mapping URLs to Java Methods #2
Our HTTP Request Object
A Minimalist In-Memory Persistence Layer
$ mvn spring-boot:run
Let’s See It In Action
Starting Up...
Ta-Da!!!
Java and Spring CAN be productive!
Source code available at
https://github.com/davidkiss/yourl
Any questions / suggestions:
info@kaviddiss.com
Overview

Contenu connexe

Tendances

Spring hibernate tutorial
Spring hibernate tutorialSpring hibernate tutorial
Spring hibernate tutorialRohit Jagtap
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework Serhat Can
 
Spring Framework - Core
Spring Framework - CoreSpring Framework - Core
Spring Framework - CoreDzmitry Naskou
 
Spring bean mod02
Spring bean mod02Spring bean mod02
Spring bean mod02Guo Albert
 
Getting Started with Spring Framework
Getting Started with Spring FrameworkGetting Started with Spring Framework
Getting Started with Spring FrameworkEdureka!
 
Spring framework
Spring frameworkSpring framework
Spring frameworkvietduc17
 
Spring core module
Spring core moduleSpring core module
Spring core moduleRaj Tomar
 
Spring Framework
Spring FrameworkSpring Framework
Spring Frameworknomykk
 
Spring framework in depth
Spring framework in depthSpring framework in depth
Spring framework in depthVinay Kumar
 

Tendances (19)

Spring hibernate tutorial
Spring hibernate tutorialSpring hibernate tutorial
Spring hibernate tutorial
 
Introduction to Spring Framework
Introduction to Spring FrameworkIntroduction to Spring Framework
Introduction to Spring Framework
 
Spring Framework - Core
Spring Framework - CoreSpring Framework - Core
Spring Framework - Core
 
Spring boot jpa
Spring boot jpaSpring boot jpa
Spring boot jpa
 
Next stop: Spring 4
Next stop: Spring 4Next stop: Spring 4
Next stop: Spring 4
 
Spring Framework Rohit
Spring Framework RohitSpring Framework Rohit
Spring Framework Rohit
 
Spring mvc
Spring mvcSpring mvc
Spring mvc
 
Reactjs Basics
Reactjs BasicsReactjs Basics
Reactjs Basics
 
Spring bean mod02
Spring bean mod02Spring bean mod02
Spring bean mod02
 
Spring MVC
Spring MVCSpring MVC
Spring MVC
 
Getting Started with Spring Framework
Getting Started with Spring FrameworkGetting Started with Spring Framework
Getting Started with Spring Framework
 
Spring framework
Spring frameworkSpring framework
Spring framework
 
Spring User Guide
Spring User GuideSpring User Guide
Spring User Guide
 
Introduction to spring boot
Introduction to spring bootIntroduction to spring boot
Introduction to spring boot
 
Spring framework
Spring frameworkSpring framework
Spring framework
 
Spring core module
Spring core moduleSpring core module
Spring core module
 
Spring Framework
Spring FrameworkSpring Framework
Spring Framework
 
Spring framework in depth
Spring framework in depthSpring framework in depth
Spring framework in depth
 
Spring MVC 5 & Hibernate 5 Integration
Spring MVC 5 & Hibernate 5 IntegrationSpring MVC 5 & Hibernate 5 Integration
Spring MVC 5 & Hibernate 5 Integration
 

Similaire à Building web applications with Java & Spring

Spring Mvc,Java, Spring
Spring Mvc,Java, SpringSpring Mvc,Java, Spring
Spring Mvc,Java, Springifnu bima
 
Seven Simple Reasons to Use AppFuse
Seven Simple Reasons to Use AppFuseSeven Simple Reasons to Use AppFuse
Seven Simple Reasons to Use AppFuseMatt Raible
 
What's New in AppFuse 2.0
What's New in AppFuse 2.0What's New in AppFuse 2.0
What's New in AppFuse 2.0Matt Raible
 
Learn Spring Boot With Bisky - Intoduction
Learn Spring Boot With Bisky - IntoductionLearn Spring Boot With Bisky - Intoduction
Learn Spring Boot With Bisky - IntoductionMarshallChabaga
 
Spring framework Introduction
Spring framework  IntroductionSpring framework  Introduction
Spring framework IntroductionAnuj Singh Rajput
 
Spring Framework Tutorial for Beginners.pdf
Spring Framework Tutorial for Beginners.pdfSpring Framework Tutorial for Beginners.pdf
Spring Framework Tutorial for Beginners.pdfSudhanshiBakre1
 
Spring framework-tutorial
Spring framework-tutorialSpring framework-tutorial
Spring framework-tutorialvinayiqbusiness
 
spring framework ppt by Rohit malav
spring framework ppt by Rohit malavspring framework ppt by Rohit malav
spring framework ppt by Rohit malavRohit malav
 
Modern Java Web Development
Modern Java Web DevelopmentModern Java Web Development
Modern Java Web Developmentzenyk
 
How Spring Framework Really Works?
How Spring Framework Really Works?How Spring Framework Really Works?
How Spring Framework Really Works?NexSoftsys
 
Spring Book – Chapter 1 – Introduction
Spring Book – Chapter 1 – IntroductionSpring Book – Chapter 1 – Introduction
Spring Book – Chapter 1 – IntroductionTomcy John
 
Spring boot vs spring framework razor sharp web applications
Spring boot vs spring framework razor sharp web applicationsSpring boot vs spring framework razor sharp web applications
Spring boot vs spring framework razor sharp web applicationsKaty Slemon
 
Spring Basics
Spring BasicsSpring Basics
Spring BasicsEmprovise
 
dokumen.tips_introduction-to-spring-boot-58bb649a21ce5.pptx
dokumen.tips_introduction-to-spring-boot-58bb649a21ce5.pptxdokumen.tips_introduction-to-spring-boot-58bb649a21ce5.pptx
dokumen.tips_introduction-to-spring-boot-58bb649a21ce5.pptxAppster1
 

Similaire à Building web applications with Java & Spring (20)

Spring Mvc,Java, Spring
Spring Mvc,Java, SpringSpring Mvc,Java, Spring
Spring Mvc,Java, Spring
 
Spring
SpringSpring
Spring
 
Seven Simple Reasons to Use AppFuse
Seven Simple Reasons to Use AppFuseSeven Simple Reasons to Use AppFuse
Seven Simple Reasons to Use AppFuse
 
What's New in AppFuse 2.0
What's New in AppFuse 2.0What's New in AppFuse 2.0
What's New in AppFuse 2.0
 
Learn Spring Boot With Bisky - Intoduction
Learn Spring Boot With Bisky - IntoductionLearn Spring Boot With Bisky - Intoduction
Learn Spring Boot With Bisky - Intoduction
 
Spring framework Introduction
Spring framework  IntroductionSpring framework  Introduction
Spring framework Introduction
 
Spring Mvc
Spring MvcSpring Mvc
Spring Mvc
 
Spring notes
Spring notesSpring notes
Spring notes
 
Spring Framework Tutorial for Beginners.pdf
Spring Framework Tutorial for Beginners.pdfSpring Framework Tutorial for Beginners.pdf
Spring Framework Tutorial for Beginners.pdf
 
Spring framework-tutorial
Spring framework-tutorialSpring framework-tutorial
Spring framework-tutorial
 
spring framework ppt by Rohit malav
spring framework ppt by Rohit malavspring framework ppt by Rohit malav
spring framework ppt by Rohit malav
 
Modern Java Web Development
Modern Java Web DevelopmentModern Java Web Development
Modern Java Web Development
 
How Spring Framework Really Works?
How Spring Framework Really Works?How Spring Framework Really Works?
How Spring Framework Really Works?
 
Meanstack overview
Meanstack overviewMeanstack overview
Meanstack overview
 
Springs_Training
Springs_TrainingSprings_Training
Springs_Training
 
Spring Book – Chapter 1 – Introduction
Spring Book – Chapter 1 – IntroductionSpring Book – Chapter 1 – Introduction
Spring Book – Chapter 1 – Introduction
 
Asp.net Web Development.pdf
Asp.net Web Development.pdfAsp.net Web Development.pdf
Asp.net Web Development.pdf
 
Spring boot vs spring framework razor sharp web applications
Spring boot vs spring framework razor sharp web applicationsSpring boot vs spring framework razor sharp web applications
Spring boot vs spring framework razor sharp web applications
 
Spring Basics
Spring BasicsSpring Basics
Spring Basics
 
dokumen.tips_introduction-to-spring-boot-58bb649a21ce5.pptx
dokumen.tips_introduction-to-spring-boot-58bb649a21ce5.pptxdokumen.tips_introduction-to-spring-boot-58bb649a21ce5.pptx
dokumen.tips_introduction-to-spring-boot-58bb649a21ce5.pptx
 

Building web applications with Java & Spring