Upload
david-kiss
View
105
Download
2
Tags:
Embed Size (px)
Citation preview
@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:
Overview