Код: Выделить всё
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
org.springframework.boot
spring-boot-starter-parent
3.2.5
com.tsdevelopment
spring-boot-cache
0.0.1-SNAPSHOT
spring-boot-cache
Demo project for Spring Boot
17
org.springframework.boot
spring-boot-starter
org.springframework.boot
spring-boot-starter-test
test
io.rest-assured
rest-assured
5.5.0
test
org.springframework.boot
spring-boot-starter-web
org.infinispan
infinispan-spring-boot-starter-remote
14.0.32.Final
org.infinispan
infinispan-client-hotrod
14.0.32.Final
jakarta.transaction
jakarta.transaction-api
2.0.1
org.springframework.boot
spring-boot-maven-plugin
Код: Выделить всё
infinispan.remote.server-list=127.0.0.1:11222
infinispan.remote.auth-username=admin
infinispan.remote.auth-password=admin
Код: Выделить всё
import org.infinispan.spring.remote.provider.SpringRemoteCacheManagerFactoryBean;
import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
@EnableCaching
public class CacheConfig {
@Bean
public SpringRemoteCacheManagerFactoryBean remoteCacheManagerFactoryBean() {
return new SpringRemoteCacheManagerFactoryBean();
}
@Bean
public CacheManager cacheManager(SpringRemoteCacheManagerFactoryBean remoteCacheManagerFactoryBean) throws Exception {
return remoteCacheManagerFactoryBean.getObject();
}
}
Код: Выделить всё
Caused by: java.lang.NoClassDefFoundError: javax/transaction/RollbackException
Подробнее здесь: https://stackoverflow.com/questions/791 ... tion-error
Мобильная версия