Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.46 KB

File metadata and controls

24 lines (18 loc) · 1.46 KB

Spring Boot - Redis Transactional Example

This repository contains code to demonstrate Spring Boot transaction behavior when working with a redis instance.
It also demonstrates how to create self-instantiated domain components with Spring autowiring within the application context.

Prerequisites

Locally running redis instance with default configuration

Run the application

mvn spring-boot:run

Redis

Configuration

  • see RedisConfiguration, with default redis configuration and an embedded database for enabling transaction management

Usage

Autowiring self-instantiated domain component

  • see TestComponentFactory, which is responsible for providing assisted autowiring, by offering a factory method to create autowired objects with custom parameters
  • see TestComponent, which is the instantiated object