Skip to content

Commit 40ae0e3

Browse files
committed
Update 18. Using the @SpringBootApplication annotation.md
1 parent 3e8a18e commit 40ae0e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

III. Using Spring Boot/18. Using the @SpringBootApplication annotation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### 18. 使用@SpringBootApplication注解
22

3-
很多Spring Boot开发者总是使用`@Configuration``@EnableAutoConfiguration``@ComponentScan`注解他们的main类。由于这些注解被如此频繁地一块使用(特别是你遵循以上[最佳实践](http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#using-boot-structuring-your-code)时),Spring Boot提供一个方便的`@SpringBootApplication`选择。
3+
很多Spring Boot开发者总是使用`@Configuration``@EnableAutoConfiguration``@ComponentScan`注解他们的main类。由于这些注解被如此频繁地一块使用(特别是你遵循以上[最佳实践](14. Structuring your code.md)时),Spring Boot提供一个方便的`@SpringBootApplication`选择。
44

55
`@SpringBootApplication`注解等价于以默认属性使用`@Configuration``@EnableAutoConfiguration``@ComponentScan`
66
```java

0 commit comments

Comments
 (0)