From 9b690558be9d129efa48c2be921c94624be2a980 Mon Sep 17 00:00:00 2001 From: Greg Turnquist Date: Thu, 1 Aug 2013 14:32:05 -0400 Subject: [PATCH] Edit guide to properly use spring-boot:run --- README.ftl.md | 2 +- README.md | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/README.ftl.md b/README.ftl.md index cdff554925..bf9048d4c1 100644 --- a/README.ftl.md +++ b/README.ftl.md @@ -102,7 +102,7 @@ This example uses a memory-based database (provided by `@EnableBatchProcessing`) ## <@build_an_executable_jar/> -<@run_the_application module="batch job"/> +<@run_the_application_with_maven module="batch job"/> The job prints out a line for each person that gets transformed. After the job runs, you can also see the output from querying the database. diff --git a/README.md b/README.md index 637e01d7df..3c61e60b00 100644 --- a/README.md +++ b/README.md @@ -445,7 +445,7 @@ Add the following configuration to your existing Maven POM: ``` -The `start-class` property tells Maven to create a `META-INF/MANIFEST.MF` file with a `Main-Class: hello.Application` entry. This entry enables you to run the jar with `java -jar`. +The `start-class` property tells Maven to create a `META-INF/MANIFEST.MF` file with a `Main-Class: hello.Application` entry. This entry enables you to run it with `mvn spring-boot:run` (or simply run the jar itself with `java -jar`). The [Spring Boot maven plugin][spring-boot-maven-plugin] collects all the jars on the classpath and builds a single "über-jar", which makes it more convenient to execute and transport your service. @@ -455,21 +455,16 @@ Now run the following command to produce a single executable JAR file containing $ mvn package ``` -To run the package, run this: -```sh -$ mvn spring-boot:run -``` - [spring-boot-maven-plugin]: https://github.com/SpringSource/spring-boot/tree/master/spring-boot-maven-plugin > **Note:** The procedure above will create a runnable JAR. You can also opt to [build a classic WAR file](/guides/gs/convert-jar-to-war/content) instead. Run the batch job ------------------- -Run your batch job with `java -jar` at the command line: +Run your batch job using the spring-boot plugin at the command line: ```sh -$ java -jar target/gs-batch-processing-0.1.0.jar +$ mvn spring-boot:run ```