20 Apr 2021 ClassNotes
20 Apr 2021 ClassNotes
(https://www.youtube.com/watch?v=A-KwZ_-Tf4s)
-> What ever the applications we can develop by using Spring same type of
applications can be developed by using Spring Boot also.
1) Standalone apps
2) Web apps
3) Distributed apps (Webservices & Restful Services)
-> We can't say spring boot is replacing spring because Spring Boot is internally
using Spring framework only.
-> Starter poms are used to reduce maven configuration. Spring Boot provided
several starters like below
spring-boot-starter
spring-boot-starter-web
spring-boot-starter-data-jpa
spring-boot-starter-actuator
spring-boot-starter-mail etc...
-> Spring Boot main advantage is AutoConfiguration. Based on Starter poms spring
boot will identify what configuration is required to run our application and it
will provide that configuration.
1)tomcat (default)
2)jetty
3)netty
4)undertow
Note: We can deploy Spring Boot application into external servers also.
-------------------------------------------------------------------------
-> Spring Boot provided actuators which are used to provide production ready
features of our applications.
-> Spring Boot is having very good integration support with Embedded Databases like
h2, derby etc...
-> Now a days in industry spring boot is mainly using to develop Microservices
Based applications (Rest apis)
-> We can develop applications very easily & quickly by using spring boot because
boot will provide auto configuration. Spring Boot is supporting for Rapid
application development by providing infrastructure which is required for our
application.