Clean up and remove webiness of guides

Resolves #10
This commit is contained in:
Greg Turnquist 2016-02-24 09:24:02 -06:00
parent 63cea20610
commit e9b154861d
1 changed files with 1 additions and 6 deletions

View File

@ -151,10 +151,7 @@ include::complete/src/main/java/hello/Application.java[]
- `@Configuration` tags the class as a source of bean definitions for the application context.
- `@EnableAutoConfiguration` tells Spring Boot to start adding beans based on classpath settings, other beans, and various property settings.
- Normally you would add `@EnableWebMvc` for a Spring MVC app, but Spring Boot adds it automatically when it sees **spring-webmvc** on the classpath. This flags the application as a web application and activates key behaviors such as setting up a `DispatcherServlet`.
- `@ComponentScan` tells Spring to look for other components, configurations, and services in the the `hello` package, allowing it to find the `HelloController`.
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.
- `@ComponentScan` tells Spring to look for other components, configurations, and services in the the `hello` package allowing it to find the batch details.
For demonstration purposes, there is code to create a `JdbcTemplate`, query the database, and print out the names of people the batch job inserts.
@ -183,7 +180,5 @@ Found <firstName: JOHN, lastName: DOE> in the database.
Congratulations! You built a batch job that ingested data from a spreadsheet, processed it, and wrote it to a database.
include::https://raw.githubusercontent.com/spring-guides/getting-started-macros/master/footer.adoc[]