diff --git a/docs/modules/ROOT/pages/spring-cloud-netflix.adoc b/docs/modules/ROOT/pages/spring-cloud-netflix.adoc index 8e556ef9c..415ab20ea 100755 --- a/docs/modules/ROOT/pages/spring-cloud-netflix.adoc +++ b/docs/modules/ROOT/pages/spring-cloud-netflix.adoc @@ -35,8 +35,9 @@ public class Application { } public static void main(String[] args) { - new SpringApplicationBuilder(Application.class).web(true).run(args); - } + SpringApplication.run(CustomerServiceTestApplication.class, args); + } + } ---- @@ -411,8 +412,9 @@ The following example shows a minimal Eureka server: public class Application { public static void main(String[] args) { - new SpringApplicationBuilder(Application.class).web(true).run(args); - } + SpringApplication.run(CustomerServiceTestApplication.class, args); + } + } ----