mirror of
https://gitee.com/dromara/hmily.git
synced 2024-12-05 12:53:29 +08:00
HmilyTransactionBootstrap primary
This commit is contained in:
parent
9d0f064411
commit
6ca6dac6cf
@ -27,7 +27,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
import org.springframework.context.annotation.ImportResource;
|
||||
|
||||
/**
|
||||
* SpringCloudTccOrderApplication.
|
||||
* SpringCloudHmilyOrderApplication.
|
||||
*
|
||||
* @author xiaoyu
|
||||
*/
|
||||
|
@ -27,6 +27,7 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.context.annotation.EnableAspectJAutoProxy;
|
||||
import org.springframework.context.annotation.Primary;
|
||||
|
||||
/**
|
||||
* HmilyAutoConfiguration is spring boot starter handler.
|
||||
@ -48,6 +49,7 @@ public class HmilyAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
@Qualifier("hmilyTransactionBootstrap")
|
||||
@Primary
|
||||
public HmilyTransactionBootstrap hmilyTransactionBootstrap(HmilyInitService hmilyInitService) {
|
||||
final HmilyTransactionBootstrap hmilyTransactionBootstrap = new HmilyTransactionBootstrap(hmilyInitService);
|
||||
hmilyTransactionBootstrap.setBufferSize(hmilyConfigProperties.getBufferSize());
|
||||
|
Loading…
Reference in New Issue
Block a user