Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 2.11 KB

README.md

File metadata and controls

60 lines (40 loc) · 2.11 KB

spring-jdg: Example Using Infinispan Cache in Spring Application

Author: Sebastian Łaskawiec Level: Intermediate Technologies: Infinispan, Spring Boot Summary: The spring4-jdg quickstart demonstrates how to use Infinispan in a Spring application. Target Product: JDG Product Versions: JDG 7.x Source: https://github.com/infinispan/jdg-quickstart

What is it?

The spring4-jdg quickstart shows how to use Infinispan together with Spring.

In order to simplify the Spring bootstrapping this project uses Spring Boot. Infinispan/JBoss Data Grid is configured to use only default values.

More information might be found after running this quickstart and navigating to http://localhost:8080

System requirements

All you need to build this project is Java 8.0 (Java SDK 1.8) or better, Maven 3.0 or better.

The application this project produces is designed to be run on Red Hat JBoss Enterprise Application Platform (EAP) 7.0 or later or Spring Boot Embedded Tomcat.

Configure Maven

If you have not yet done so, you must Configure Maven before testing the quickstarts.

Build the Quickstart

Type this command to build the quickstart:

    mvn clean package

Deploy Quickstarts to EAP server (suggested)

Copy built archive to EAP deployment directory (e.g. EAP/standalone/deployment). Navigate to http://localhost:8080/infinispan-spring and follow the instructions in about page.

Deploy Quickstarts using Spring Boot Embedded Tomcat

It is also possible to use Spring Boot Maven plugin and run the quickstarts using Embedded Tomcat. In order to do this, invoke the following command

    mvn spring-boot:run

Access the application

The application will be running at the following URLs:

http://localhost:8080/infinispan-spring