Skip to content

Commit 7f63114

Browse files
committed
Updates
1 parent ad25c70 commit 7f63114

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SpringBoot Concept.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public class MyApplication {
174174
</dependency>
175175
```
176176

177-
- We also get a main method which has `@SpringBootApplication` annotation . This annotation can be co-relate with `@Configuration`,`@AutoConfiguration` and `@ComponentScan`. Here we have added an sysout to and run our project.
177+
- We also get a main method which has `@SpringBootApplication` annotation . This annotation can be co-relate with `@Configuration`,`@EnableAutoConfiguration` and `@ComponentScan`. Here we have added an sysout to and run our project.
178178

179179
```
180180
package com.spring.boot.project;
@@ -220,7 +220,7 @@ Spring Project
220220
- For example, if spring-webmvc is on the classpath, this annotation flags the application as a web application and activates key behaviors, like setting up a DispatcherServlet.
221221
3. **@ComponentScan**:
222222
- Tells Spring to look for other components, configurations, and services in the specified package, allowing it to find controllers, services, and other components you define.
223-
- Instead of using three separate annotations (@Configuration, @EnableAutoConfiguration, and @ComponentScan), you can just use one.
223+
- Instead of using three separate annotations (`@Configuration`, `@EnableAutoConfiguration`, and `@ComponentScan`), you can just use one.
224224
- Reduces the amount of configuration you need to write, letting you focus on writing the application logic.
225225

226226
- There is no **web.xml** file and not even any spring configuration file mentioned. Spring Boot eliminates the need for traditional web.xml files or extensive Spring configuration files (applicationContext.xml, etc.). Instead, it uses a **convention over configuration** approach, where configurations defaults are automatically applied, significantly reducing the need for boilerplate code.

0 commit comments

Comments
 (0)