514639050 by Unknown

514639050 by Unknown

Author:Unknown
Language: eng
Format: epub


Figure 5.2: Spring Initializr for spring-cloud-task-demo

We need to add these Spring Cloud Task Maven dependencies in the pom.xml file. Also, we need to add an RDBMS database for the persistence of Spring Cloud Task/Batch job metadata. Here, in this example, we are going to use MySQL RDBMS on a local machine for local testing. We need Java Persistence API as an abstraction layer on top of the database layer to make the data layer generic, so that it can be replaced by any other database. Later on, we can connect with MySQL on the Kubernetes cluster. We can use the Testcontainers tool for MySQL testing. Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run on a Docker-based container or Kubernetes.

It will be a Spring Boot starter project and on top of that, we will add Spring Cloud Task-related binaries dependencies. You can check the latest version on Maven central portal:

https://mvnrepository.com/

We need to add the following Maven dependencies in the pom.xml file:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.