From 9006bbe0421c0ef215f2319933c94023642f096b Mon Sep 17 00:00:00 2001 From: Greg Turnquist Date: Wed, 24 Feb 2016 14:06:16 -0600 Subject: [PATCH] Move command line runner details --- README.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.adoc b/README.adoc index 158ebc4..039a92b 100644 --- a/README.adoc +++ b/README.adoc @@ -46,11 +46,9 @@ To upload files with Servlet 3.0 containers, you need to register a `MultipartCo `src/main/java/hello/Application.java` [source,java] ---- -include::complete/src/main/java/hello/Application.java[] +include::initial/src/main/java/hello/Application.java[] ---- -You also want a target folder to upload files to, so there is a Java 8 lambda used to create a Boot `CommandLineRunner` at startup which creates that folder. - You will soon add a Spring MVC controller, which is why you need `@SpringBootApplication`. Spring Boot automatically finds `@Controller`-marked classes and registers them with the application context. As part of auto-configuring Spring MVC, Spring Boot will create a `MultipartConfigElement` bean and make itself ready for file uploads. @@ -135,6 +133,8 @@ include::complete/src/main/java/hello/Application.java[] The `main()` method uses Spring Boot's `SpringApplication.run()` method to launch an application. Did you notice that there wasn't a single line of XML? No **web.xml** file either. This web application is 100% pure Java and you didn't have to deal with configuring any plumbing or infrastructure. +You also want a target folder to upload files to, so there is a Java 8 lambda used to create a Boot `CommandLineRunner` at startup which creates that folder. + include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/build_an_executable_jar_subhead.adoc[] include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/build_an_executable_jar_with_both.adoc[]