WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
Springboot introduction
1. Spring BootSpring Boot
By Sagar VermaBy Sagar Verma
Sr. Software EngineerSr. Software Engineer
20192019
2. Outline of the presentationOutline of the presentation
What is Spring bootWhat is Spring boot
History of Spring bootHistory of Spring boot
What is it good for?What is it good for?
AdvantageAdvantage
LimitationLimitation
ExampleExample
QuestionQuestion
3. A little bit of historyA little bit of history
1999 J2EE 1.21999 J2EE 1.2
2001 xDoclet 1.02001 xDoclet 1.0
2004 Spring Framework 1.02004 Spring Framework 1.0
●● InjectionInjection
●● POJO orientedPOJO oriented
●● AOP & transactionsAOP & transactions
2006 Java EE 52006 Java EE 5
2013 Spring Boot2013 Spring Boot
4. What is Spring boot?What is Spring boot?
First of all Spring boot is not a framework.First of all Spring boot is not a framework.
It’s a approach to develop spring applicationIt’s a approach to develop spring application
with less configuration.with less configuration.
It is easy to learn when u know springIt is easy to learn when u know spring
framework, it developed on top of existingframework, it developed on top of existing
spring framework.spring framework.
It’s a innovation of spring team.It’s a innovation of spring team.
It is open source.It is open source.
5. What is it good for?What is it good for?
Easy to developed spring based applicationEasy to developed spring based application
with java and groovy.with java and groovy.
It reduce lots of development time and increaseIt reduce lots of development time and increase
productivity.productivity.
Avoid writing boilerplate code, annotation andAvoid writing boilerplate code, annotation and
xml configurationxml configuration
Easy to integrate with spring ecosystem likeEasy to integrate with spring ecosystem like
jdbc, security, orm, data etc.jdbc, security, orm, data etc.
It follows opinionated default configuration toIt follows opinionated default configuration to
spring development.spring development.
6. What is it good for?What is it good for?
It embedded http server like tomcat , jetty, etc.It embedded http server like tomcat , jetty, etc.
It provide some default to quick start newIt provide some default to quick start new
projects with no time.projects with no time.
It avoid xml configuration.It avoid xml configuration.
It provide CLI tool to developed and test springIt provide CLI tool to developed and test spring
boot.boot.
Use Maven and Gradle to build applicationUse Maven and Gradle to build application
easily.easily.
8. LimitationLimitation
It’s a very tough and time consuming process toIt’s a very tough and time consuming process to
convert existing or legacy spring frameworkconvert existing or legacy spring framework
project into spring boot application.project into spring boot application.
It is best for new spring project.It is best for new spring project.
9. Current VersionCurrent Version
Spring bootSpring boot 2.0.x 2.0.7.2.0.x 2.0.7.RELEASERELEASE Nov, 2018 isNov, 2018 is
the current stable version ,Spring 4.3 , java 1.7the current stable version ,Spring 4.3 , java 1.7
support.support.
Spring boot 1.1Spring boot 1.1 (June 2014).(June 2014).
Spring boot 1.2Spring boot 1.2 (March 2015)(March 2015)
Spring boot 1.3Spring boot 1.3 (December 2016)(December 2016)
Spring boot 1.4Spring boot 1.4 (January 2017)(January 2017)
Spring boot 1.5Spring boot 1.5 (February 2017)(February 2017)
11. Template Engines SupportTemplate Engines Support
Spring Boot includes auto configuration support forSpring Boot includes auto configuration support for
the following templating engines:the following templating engines:
FreeMarker.FreeMarker.
Groovy.Groovy.
Thymeleaf.Thymeleaf.
Mustache.Mustache.
Jade4jJade4j
Velocity- depreciated in spring4.3Velocity- depreciated in spring4.3
We avoid jsp template because it required tomcat thatWe avoid jsp template because it required tomcat that
makes limitation in versioning.makes limitation in versioning.
12. Way to create Spring Boot AppWay to create Spring Boot App
By using STS IDE (Spring tool suit IntegratedBy using STS IDE (Spring tool suit Integrated
development environment)development environment)
By using CLI (Command Line Interface)By using CLI (Command Line Interface)
By using Spring IO site.By using Spring IO site.
http://start.spring.iohttp://start.spring.io
13. Way to create Spring Boot AppWay to create Spring Boot App
14. Way to create Spring Boot AppWay to create Spring Boot App
15.
16.
17.
18. Thank You !!!Thank You !!!
Feel free to asked question.Feel free to asked question.
--- Sagar Verma