才风智慧V3.0

停车,汽车充电,电动车充电,洗车,商城,物业缴费等


默认标题

<p><a href="https://blog.csdn.net/weixin_40777510/article/details/129685726">https://blog.csdn.net/weixin_40777510/article/details/129685726</a></p> <p>在nacos中创建配置 seataServer.properties 组名 DEFAULT_GROUP</p> <p>值为 </p> <p>&gt; #For details about configuration items, see <a href="https://seata.io/zh-cn/docs/user/configurations.html">https://seata.io/zh-cn/docs/user/configurations.html</a></p> <h1>Transport configuration, for client and server</h1> <p>transport.type=TCP transport.server=NIO transport.heartbeat=true transport.enableTmClientBatchSendRequest=false transport.enableRmClientBatchSendRequest=true transport.enableTcServerBatchSendResponse=false transport.rpcRmRequestTimeout=30000 transport.rpcTmRequestTimeout=30000 transport.rpcTcRequestTimeout=30000 transport.threadFactory.bossThreadPrefix=NettyBoss transport.threadFactory.workerThreadPrefix=NettyServerNIOWorker transport.threadFactory.serverExecutorThreadPrefix=NettyServerBizHandler transport.threadFactory.shareBossWorker=false transport.threadFactory.clientSelectorThreadPrefix=NettyClientSelector transport.threadFactory.clientSelectorThreadSize=1 transport.threadFactory.clientWorkerThreadPrefix=NettyClientWorkerThread transport.threadFactory.bossThreadSize=1 transport.threadFactory.workerThreadSize=default transport.shutdown.wait=3 transport.serialization=seata transport.compressor=none</p> <h1>Transaction routing rules configuration, only for the client</h1> <h1>此处的mygroup名字可以自定义,只修改这个值即可</h1> <p>service.vgroupMapping.mygroup=default</p> <h1>If you use a registry, you can ignore it</h1> <p>service.default.grouplist=127.0.0.1:8091 service.enableDegrade=false service.disableGlobalTransaction=false</p> <h1>Transaction rule configuration, only for the client</h1> <p>client.rm.asyncCommitBufferLimit=10000 client.rm.lock.retryInterval=10 client.rm.lock.retryTimes=30 client.rm.lock.retryPolicyBranchRollbackOnConflict=true client.rm.reportRetryCount=5 client.rm.tableMetaCheckEnable=true client.rm.tableMetaCheckerInterval=60000 client.rm.sqlParserType=druid client.rm.reportSuccessEnable=false client.rm.sagaBranchRegisterEnable=false client.rm.sagaJsonParser=fastjson client.rm.tccActionInterceptorOrder=-2147482648 client.tm.commitRetryCount=5 client.tm.rollbackRetryCount=5 client.tm.defaultGlobalTransactionTimeout=60000 client.tm.degradeCheck=false client.tm.degradeCheckAllowTimes=10 client.tm.degradeCheckPeriod=2000 client.tm.interceptorOrder=-2147482648 client.undo.dataValidation=true client.undo.logSerialization=jackson client.undo.onlyCareUpdateColumns=true server.undo.logSaveDays=7 server.undo.logDeletePeriod=86400000 client.undo.logTable=undo_log client.undo.compress.enable=true client.undo.compress.type=zip client.undo.compress.threshold=64k</p> <h1>For TCC transaction mode</h1> <p>tcc.fence.logTableName=tcc_fence_log tcc.fence.cleanPeriod=1h</p> <h1>Log rule configuration, for client and server</h1> <p>log.exceptionRate=100</p> <h1>Transaction storage configuration, only for the server. The file, db, and redis configuration values are optional.</h1> <h1>默认为file,一定要改为db,我们自己的服务启动会连接不到seata</h1> <p>store.mode=db store.lock.mode=db store.session.mode=db</p> <h1>Used for password encryption</h1> <h1>These configurations are required if the <code>store mode</code> is <code>db</code>. If <code>store.mode,store.lock.mode,store.session.mode</code> are not equal to <code>db</code>, you can remove the configuration block.</h1> <h1>修改mysql的配置</h1> <p>store.db.datasource=druid store.db.dbType=mysql store.db.driverClassName=com.mysql.cj.jdbc.Driver</p> <h1>指定seata的数据库,下面会提</h1> <p>store.db.url=jdbc:mysql://127.0.0.1:3306/seata?useUnicode=true&amp;rewriteBatchedStatements=true store.db.user=root store.db.password=root store.db.minConn=5 store.db.maxConn=30 store.db.globalTable=global_table store.db.branchTable=branch_table store.db.distributedLockTable=distributed_lock store.db.queryLimit=100 store.db.lockTable=lock_table store.db.maxWait=5000</p> <h1>Transaction rule configuration, only for the server</h1> <p>server.recovery.committingRetryPeriod=1000 server.recovery.asynCommittingRetryPeriod=1000 server.recovery.rollbackingRetryPeriod=1000 server.recovery.timeoutRetryPeriod=1000 server.maxCommitRetryTimeout=-1 server.maxRollbackRetryTimeout=-1 server.rollbackRetryTimeoutUnlockEnable=false server.distributedLockExpireTime=10000 server.xaerNotaRetryTimeout=60000 server.session.branchAsyncQueueSize=5000 server.session.enableBranchAsyncRemove=false server.enableParallelRequestHandle=false</p> <h1>Metrics configuration, only for the server</h1> <p>metrics.enabled=false metrics.registryType=compact metrics.exporterList=prometheus metrics.exporterPrometheusPort=9898</p>

页面列表

ITEM_HTML