You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Without a lot of configuration, we are up and running with a web application
22
-
- Refer https://github.com/in28minutes/SpringMvcStepByStep/blob/master/Step01.md and https://github.com/in28minutes/SpringMvcStepByStep/blob/master/Step11.md to understand the sort of stuff - web.xml, dispatcher servlet configuration, maven dependency management and plugins - that are need to launch a typical web application without Spring Boot!
11
+
- Refer https://github.com/in28minutes/SpringMvcStepByStep/blob/master/Step15.md to understand the sort of stuff - web.xml, dispatcher servlet configuration, maven dependency management and plugins - that are need to launch a typical web application without Spring Boot!
23
12
24
13
##What You Will NOT Learn during this Step:
25
14
- Spring Boot does a lot of magic. This magic is called Auto Configuration. We will discuss about different terms related to Spring Boot - Starter Parent, Starter projects, Auto configuration - in depth during our first 10 steps.
Copy file name to clipboardExpand all lines: Step05.md
+28-15Lines changed: 28 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,32 +1,45 @@
1
1
##What You Will Learn during this Step:
2
2
- Spring Boot vs Spring
3
3
- What Spring Boot is Not!
4
-
- Auto component scan
5
-
- A programming tip
6
-
- Pair Program once in a while!
7
4
8
5
##Spring Boot vs Spring
9
-
###Spring
10
-
Spring is just a dependency management framework. Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments.
6
+
7
+
### Spring
8
+
- Spring is just a dependency injection framework. Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments.
9
+
- First half of the 2000 decade! EJBs
10
+
- EJBs were NOT easy to develop.
11
+
- Write a lot of xml and plumbing code to get EJBs running
12
+
- Impossible to Unit Test
13
+
- Alternative - Writing simple JDBC Code involved a lot of plumbing
14
+
- Spring framework started with aim of making Java EE development simpler.
11
15
- Goals
12
16
- Make applications testable. i.e. easier to write unit tests
13
17
- Reduce plumbing code of JDBC and JMS
14
18
- Simple architecture. Minus EJB.
15
19
- Integrates well with other popular frameworks.
16
20
17
-
###My experience with Spring based Applications
18
-
- Developing Spring Based application need configuration of a lot of beans!
19
-
- Integration with other frameworks need configuration as well!
20
-
- Added to these, applications need other features (logging, transaction management, monitoring, configuration management etc) before they can go live!
21
-
- Spring Boot solves these problems
22
-
23
-
###Spring Boot
24
-
- Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can “just run”. Most Spring Boot applications need very little Spring configuration.
25
-
- Goals
21
+
### Applications with Spring Framework
22
+
- Over the next few years, a number of applications were developed with Spring Framework
23
+
- Testable but
24
+
- Lot of configuration (XML and Java)
25
+
- Developing Spring Based application need configuration of a lot of beans!
26
+
- Integration with other frameworks need configuration as well!
27
+
- In the last few years, focus is moving from monolith applications to microservices. We need to be able to start project quickly. Minimum or Zero start up time
28
+
- Framework Setup
29
+
- Deployment - Configurability
30
+
- Logging, Transaction Management
31
+
- Monitoring
32
+
- Web Server Configuration
33
+
34
+
### Spring Boot
35
+
- Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can “just run”.
36
+
- We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss.
37
+
- Example Problem Statements
38
+
- You want to add Hibernate to your project. You dont worry about configuring a data source and a session factory. I will do if for you!
39
+
- Goals
26
40
- Provide quick start for projects with Spring.
27
41
- Be opinionated but provide options.
28
42
- Provide a range of non-functional features that are common to large classes of projects (e.g. embedded servers, security, metrics, health checks, externalized configuration).
29
-
- Absolutely no code generation and no requirement for XML configuration.
0 commit comments