HmilyTransactionBootstrap primary

This commit is contained in:
yu199195 2019-11-01 10:54:15 +08:00
parent 9d0f064411
commit 6ca6dac6cf
2 changed files with 3 additions and 1 deletions

View File

@ -27,7 +27,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ImportResource;
/**
* SpringCloudTccOrderApplication.
* SpringCloudHmilyOrderApplication.
*
* @author xiaoyu
*/

View File

@ -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());