During the startup on SB 2.6+, the validation error is thrown
The dependencies of some of the beans in the application context form a cycle:
counterOperations defined in com.playtika.services.bundles.persistence.configuration.AutoIncrementCounterConfiguration
↓
aerospikeTemplate defined in class path resource [org/springframework/boot/autoconfigure/data/aerospike/AerospikeDataConfiguration.class]
↓
mappingAerospikeConverter defined in class path resource [org/springframework/boot/autoconfigure/data/aerospike/AerospikeCommonDataConfiguration.class]
┌─────┐
| aerospikeMappingContext defined in class path resource [org/springframework/boot/autoconfigure/data/aerospike/AerospikeCommonDataConfiguration.class]
↑ ↓
| aerospikePersistenceEntityIndexCreator defined in class path resource [org/springframework/boot/autoconfigure/data/aerospike/AerospikeDataConfiguration.class]
└─────┘
In order to fix the validation error, we need to pass the parameter
During the startup on SB 2.6+, the validation error is thrown
The dependencies of some of the beans in the application context form a cycle:
counterOperations defined in com.playtika.services.bundles.persistence.configuration.AutoIncrementCounterConfiguration ↓ aerospikeTemplate defined in class path resource [org/springframework/boot/autoconfigure/data/aerospike/AerospikeDataConfiguration.class] ↓ mappingAerospikeConverter defined in class path resource [org/springframework/boot/autoconfigure/data/aerospike/AerospikeCommonDataConfiguration.class] ┌─────┐ | aerospikeMappingContext defined in class path resource [org/springframework/boot/autoconfigure/data/aerospike/AerospikeCommonDataConfiguration.class] ↑ ↓ | aerospikePersistenceEntityIndexCreator defined in class path resource [org/springframework/boot/autoconfigure/data/aerospike/AerospikeDataConfiguration.class] └─────┘
In order to fix the validation error, we need to pass the parameter
spring.main.allow-circular-references=true