Skip to content

Commit

Permalink
More polish
Browse files Browse the repository at this point in the history
  • Loading branch information
gregturn committed Feb 24, 2016
1 parent 5421320 commit f824f71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ To upload files with Servlet 3.0 containers, you need to register a `MultipartCo
`src/main/java/hello/Application.java`
[source,java]
----
include::initial/src/main/java/hello/Application.java[]
include::complete/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.
Expand Down

0 comments on commit f824f71

Please sign in to comment.