feat(biz): 引入状态机并调整配置超时时间
- 将SQL查询超时时间和事务超时时间从60秒延长至120秒 - 在biz模块中引入Spring Statemachine依赖,用于管理HTTP客户端的登录状态 - 清理pom.xml文件中的多余空格和格式问题
This commit is contained in:
@@ -133,8 +133,8 @@ spring:
|
|||||||
test-on-return: false
|
test-on-return: false
|
||||||
socket-timeout: 60000 # socket超时时间,单位:毫秒
|
socket-timeout: 60000 # socket超时时间,单位:毫秒
|
||||||
connect-timeout: 60000 # 建立数据库连接超时时间,单位:毫秒
|
connect-timeout: 60000 # 建立数据库连接超时时间,单位:毫秒
|
||||||
query-timeout: 60 # SQL查询超时时间,单位:秒
|
query-timeout: 120 # SQL查询超时时间,单位:秒
|
||||||
transaction-query-timeout: 60 # 事务超时时间,单位:秒
|
transaction-query-timeout: 120 # 事务超时时间,单位:秒
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -48,6 +48,11 @@
|
|||||||
<version>2.0.1</version>
|
<version>2.0.1</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!-- 引入状态机 目前可以用来做一个http client 含登录状态 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.statemachine</groupId>
|
||||||
|
<artifactId>spring-statemachine-core</artifactId>
|
||||||
|
<version>3.0.1</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
Reference in New Issue
Block a user