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.
Locally running redis instance with default configuration
mvn spring-boot:run
- see RedisConfiguration, with default redis configuration and an embedded database for enabling transaction management
- see
@Transactional
behavior through SpringRedisTransactionExampleApplication, where the example is provided - see TestComponent, where the calls are marked with the transactional annotation
- 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