1、去除非必要事务

2、对分布式多节点并发时可能存在生成相同的雪花算法id问题进行处理
3、其他问题优化
This commit is contained in:
Chopper
2022-01-18 09:50:26 +08:00
parent 65e7f9750a
commit 575458afb3
104 changed files with 116 additions and 121 deletions

View File

@@ -26,7 +26,6 @@ import javax.validation.constraints.Min;
@RestController
@Api(tags = "买家端,预存款充值记录接口")
@RequestMapping("/buyer/trade/recharge")
@Transactional(rollbackFor = Exception.class)
public class RechargeTradeBuyerController {
@Autowired

View File

@@ -27,7 +27,6 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@Api(tags = "买家端,余额提现记录接口")
@RequestMapping("/buyer/member/withdrawApply")
@Transactional(rollbackFor = Exception.class)
public class MemberWithdrawApplyBuyerController {
@Autowired
private MemberWithdrawApplyService memberWithdrawApplyService;

View File

@@ -25,7 +25,6 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@Api(tags = "买家端,预存款充值记录接口")
@RequestMapping("/buyer/member/recharge")
@Transactional(rollbackFor = Exception.class)
public class RechargeBuyerController {
@Autowired

View File

@@ -3,12 +3,19 @@ server:
servlet:
context-path: /
tomcat:
uri-encoding: UTF-8
threads:
min-spare: 50
max: 1000
#
# tomcat:
# #最大链接数默认不设置默认是10000
# max-connections: 6500
# #最大等待队列长度允许HTTP请求缓存到请求队列的最大个数默认不限制
# accept-count: 1000
# threads:
# #最少闲置
# min-spare: 50
# #最大线程数 默认是200
# max: 800
netty:
connection-timeout:
# 与Spring Boot 2一样默认情况下大多数端点都不通过http公开我们公开了所有端点。对于生产您应该仔细选择要公开的端点。
management: