Commit 14c1d461 by saga Committed by Ryan Baxter

Improve the document (#2474)

Replace @Configuration, @ComponentScan, @EnableAutoConfiguration with @springbootapplication.
parent 07c4604c
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment