Skip to content

Commit dfc70f8

Browse files
Ranga Rao KaranamRanga Rao Karanam
authored andcommitted
Step 04
1 parent c7a6c00 commit dfc70f8

File tree

3 files changed

+19
-23
lines changed

3 files changed

+19
-23
lines changed

Step01.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
##What You Will Learn during this Step:
2-
- Set up an Maven Project with Eclipse. Intellij Link : https://www.jetbrains.com/help/idea/2016.2/getting-started-with-maven.html#create_maven_project
2+
- Set up an Maven Project with Eclipse.
3+
- Intellij Link : https://www.jetbrains.com/help/idea/2016.2/getting-started-with-maven.html#create_maven_project
34
- Include dependencies needed for Spring Boot.
4-
- spring-boot-starter-web
5-
- spring-boot-maven-plugin
5+
- spring-boot-starter-web : starter for building applications with Spring MVC. Tomcat is default embedded container.
6+
- spring-boot-maven-plugin : Enable running application in-place and also building a jar/war to run later!
67
- Launch Your First Spring Boot Application.
78

89
##Cool thing to note!
910
Without a lot of configuration, we are up and running with a web application
1011
- 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!
1112

1213
##What You Will NOT Learn during this Step:
13-
- Spring Boot does a lot of magic. This magic is called Auto Configuration.
14-
- We will discuss about different terms related to Spring Boot - Starter Parent, Starter projects, Auto configuration - in depth during our first 10 steps.
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.
1515
- As far as this step is concerned, we will focus on getting up and running with Spring Boot. We will understand all the magic a little later.
1616
- We will copy a lot of code in this step - just to avoid typos
1717

Step02.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
##What You Will Learn during this Step:
22
- Lets add a RestController with a dependency and see Spring Boot Magic live
33

4-
##Quick Spring Primer
4+
##Quick Spring and Spring MVC Primer
55
- What is dependency?
66
- @Component
77
- @Autowired
8+
- @RestController
89

910
## Useful Snippets and References
1011

Step03.md

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
##What You Will Learn during this Step:
2-
- First installment of how magic happens with Spring Boot. As a Spring Boot developer, you need to understand whats happening beneath the hood of Spring Boot!
3-
- Understand Starter Parent
4-
- How to override things defined in Starter Parent
2+
- First installment of revealing how magic happens with Spring Boot. As a Spring Boot developer, you need to understand what's happening beneath the hood of Spring Boot!
3+
- spring-boot-starter-web : starter for building applications with Spring MVC. Tomcat is default embedded container.
4+
- We already added this starter in the first step! Now we will explore the features it provides
55

6-
##Starter Parent
7-
- Dependency Versions
8-
- Java Versions
9-
- Default Plugins
10-
11-
## Useful Snippets and References
12-
First Snippet
13-
```
14-
<parent>
15-
<groupId>org.springframework.boot</groupId>
16-
<artifactId>spring-boot-starter-parent</artifactId>
17-
<version>1.4.0.RELEASE</version>
18-
</parent>
19-
```
6+
##spring-boot-starter-web
7+
- Spring Boot Starter Web brings all dependencies needed to build normal and RESTful web applications. Look at the dependency tree.
8+
- All the dependencies are added in because of spring-boot-starter-web
9+
- Also look at /META-INF/spring.provides inside the spring-boot-starter-web.jar
10+
- Spring Boot Starter Web auto configures things needed to startup a web application. Look at the log
11+
- Mapping servlet: 'dispatcherServlet' to [/]
12+
- Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
13+
- Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
14+
- Look at package org.springframework.boot.autoconfigure.web in spring-boot-autoconfigure-*.jar

0 commit comments

Comments
 (0)