Improve the document (#2474)

Replace @Configuration, @ComponentScan, @EnableAutoConfiguration with @springbootapplication.
This commit is contained in:
saga
2017-11-28 19:30:41 +08:00
committed by Ryan Baxter
parent 07c4604c9b
commit 14c1d461b7

View File

@@ -35,9 +35,7 @@ Example eureka client:
[source,java,indent=0]
----
@Configuration
@ComponentScan
@EnableAutoConfiguration
@SpringBootApplication
@RestController
public class Application {
@@ -1000,9 +998,7 @@ Example spring boot app
[source,java,indent=0]
----
@Configuration
@ComponentScan
@EnableAutoConfiguration
@SpringBootApplication
@EnableFeignClients
public class Application {