Class ScaSeataSpringFenceAutoConfiguration
IMPORTANT: This is a temporary workaround class.
This class is a replacement for the original
org.apache.seata.spring.boot.autoconfigure.SeataSpringFenceAutoConfiguration
which has compatibility issues with Spring Boot 4.x.
The original class uses @AutoConfigureAfter with class names that don't exist
in Spring Boot 4.x, causing ClassNotFoundException during bean name generation.
This class fixes the issue by removing the problematic class name references.
The original Seata class is excluded via SeataSpringFenceAutoConfigurationImportFilter,
and this class provides the same functionality with Spring Boot 4.x compatibility.
This class will be removed once Seata releases a new version that fixes the
compatibility issue with Spring Boot 4.x. At that time, the SCA Seata module will remove
this class and SeataSpringFenceAutoConfigurationImportFilter.
- Author:
- freeman
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.seata.rm.fence.SpringFenceConfigspringFenceConfig(DataSource dataSource, org.springframework.transaction.PlatformTransactionManager transactionManager, DataSource springFenceDataSource, org.springframework.transaction.PlatformTransactionManager springFenceTransactionManager) Deprecated.
-
Field Details
-
SPRING_FENCE_DATA_SOURCE_BEAN_NAME
Deprecated.Bean name for the Spring Fence DataSource.- See Also:
-
SPRING_FENCE_TRANSACTION_MANAGER_BEAN_NAME
Deprecated.Bean name for the Spring Fence TransactionManager.- See Also:
-
-
Constructor Details
-
ScaSeataSpringFenceAutoConfiguration
public ScaSeataSpringFenceAutoConfiguration()Deprecated.
-
-
Method Details
-
springFenceConfig
@Bean @ConfigurationProperties("seata.tcc.fence") public org.apache.seata.rm.fence.SpringFenceConfig springFenceConfig(DataSource dataSource, org.springframework.transaction.PlatformTransactionManager transactionManager, @Qualifier("seataSpringFenceDataSource") @Autowired(required=false) DataSource springFenceDataSource, @Qualifier("seataSpringFenceTransactionManager") @Autowired(required=false) org.springframework.transaction.PlatformTransactionManager springFenceTransactionManager) Deprecated.
-