修正 starter 的 spring.factories 文件, 设定autoconfiguration

This commit is contained in:
Administrator
2020-11-02 16:37:06 +08:00
parent 8851727cf0
commit 2bb3ca8f5b
23 changed files with 60 additions and 35 deletions

View File

@ -1,13 +0,0 @@
package com.chinaunicom.mall.ebtp.cloud.seata.starter;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}

View File

@ -0,0 +1,9 @@
package com.chinaunicom.mall.ebtp.cloud.seata.starter;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
@Configuration
@PropertySource("classpath:seata-configuration.properties")
public class SeataStarterConfiguration {
}

View File

@ -0,0 +1,3 @@
# AutoConfiguration
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.chinaunicom.mall.ebtp.cloud.seata.starter.SeataStarterConfiguration

View File

@ -0,0 +1,66 @@
transport {
# tcp udt unix-domain-socket
type = "TCP"
#NIO NATIVE
server = "NIO"
#enable heartbeat
heartbeat = true
# the client batch send request enable
enableClientBatchSendRequest = true
#thread factory for netty
threadFactory {
bossThreadPrefix = "NettyBoss"
workerThreadPrefix = "NettyServerNIOWorker"
serverExecutorThread-prefix = "NettyServerBizHandler"
shareBossWorker = false
clientSelectorThreadPrefix = "NettyClientSelector"
clientSelectorThreadSize = 1
clientWorkerThreadPrefix = "NettyClientWorkerThread"
# netty boss thread size,will not be used for UDT
bossThreadSize = 1
#auto default pin or 8
workerThreadSize = "default"
}
shutdown {
# when destroy server, wait seconds
wait = 3
}
serialization = "seata"
compressor = "none"
}
service {
#transaction service group mapping
vgroupMapping.test_tx_group = "default"
#only support when registry.type=file, please don't set multiple addresses
default.grouplist = "127.0.0.1:8091"
#degrade, current not support
enableDegrade = false
#disable seata
disableGlobalTransaction = false
}
client {
rm {
asyncCommitBufferLimit = 10000
lock {
retryInterval = 10
retryTimes = 30
retryPolicyBranchRollbackOnConflict = true
}
reportRetryCount = 5
tableMetaCheckEnable = false
reportSuccessEnable = false
}
tm {
commitRetryCount = 5
rollbackRetryCount = 5
}
undo {
dataValidation = true
logSerialization = "jackson"
logTable = "undo_log"
}
log {
exceptionRate = 100
}
}

View File

@ -0,0 +1,17 @@
registry {
type = "eureka"
eureka {
serviceUrl = "http://192.168.40.17:12093/eureka/,http://192.168.40.17:18126/eureka/,http://192.168.40.17:28641/eureka/"
application = "default"
weight = "1"
}
}
config {
type = "file"
file {
name = "file.conf"
}
}

View File

@ -0,0 +1,7 @@
unifast.swagger.basePackage=com.chinaunicom.mall.ebtp.cloud
unifast.swagger.title=\u6d4b\u8bd5\u63a5\u53e3\u6587\u6863
unifast.swagger.contactName=\u5409\u6797\u9879\u76ee\u7ec4
unifast.swagger.contactUrl=http://chinaunicom.com
unifast.swagger.contactEmail=chinaunicom@chinaunicom.com
unifast.swagger.version=0.0.1
unifast.swagger.description=\u7840\u540e\u53f0\u529f\u80fd\u6846\u67b6