From 3d21077fe713c47e6dbd89900fc61856e2f5ca31 Mon Sep 17 00:00:00 2001 From: Glenn Renfro Date: Wed, 7 Mar 2018 14:35:13 -0500 Subject: [PATCH] Update partition sample README docs Replace individual environment datasource variables with SPRING_APPLICATION_JSON resolves #401 --- .../partitioned-batch-job/README.adoc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spring-cloud-task-samples/partitioned-batch-job/README.adoc b/spring-cloud-task-samples/partitioned-batch-job/README.adoc index ad042c44..f8b1257a 100644 --- a/spring-cloud-task-samples/partitioned-batch-job/README.adoc +++ b/spring-cloud-task-samples/partitioned-batch-job/README.adoc @@ -18,16 +18,15 @@ $ ./mvnw clean install [source,shell,indent=2] ---- -$ export spring_datasource_url=jdbc:mysql://localhost:3306/ -$ export spring_datasource_username= -$ export spring_datasource_password= -$ export spring_datasource_driverClassName=org.mariadb.jdbc.Driver +$ export SPRING_APPLICATION_JSON='{"spring":{"datasource":{"url":"jdbc:mysql://localhost:3306/","username":"","password":"","driverClassName":"org.mariadb.jdbc.Driver"}}}' $ java -jar target/partitioned-batch-job-1.2.1.RELEASE.jar ---- NOTE: This example will use require a MySql RDBMS repository and currently uses the mariadb jdbc driver to connect. You can changes this another driver based on your needs. +NOTE: Since this example uses the Spring Cloud Deployer Local to launch the partitions, you will need to establish the datasource settings using the SPRING_APPLICATION_JSON environment property as shown above. + == Dependencies: A datasource (not in memory) must be configured based on normal Spring Boot conventions