📐 Springboot环境配置
# 约定大于配置
Forest是基于约定大于配置的理念进行设计的,如果您已经添加好了forest-spring-boot-starter依赖,基本上可以什么都不配置,可直接跳转到《Springboot环境使用》学习如何上手使用
当然也可以进行些简单的配置
# 简单配置
在application.yaml / application.properties中配置的 HTTP 基本参数
forest:
  max-connections: 1000        # 连接池最大连接数
  connect-timeout: 3000        # 连接超时时间,单位为毫秒
  read-timeout: 3000           # 数据读取超时时间,单位为毫秒
 1
2
3
4
2
3
4
# 连接池最大连接数
forest.max-connections=1000
# 连接超时时间,单位为毫秒
forest.connect-timeout=3000
# 数据读取超时时间,单位为毫秒
forest.read-timeout=3000
 1
2
3
4
5
6
2
3
4
5
6
// Make sure to add code blocks to your code group
# 详细配置
Forest的详细配置说明,请参见《Springboot环境配置项》
帮助我们改善此文档  (opens new window)
  上次更新: 2024/12/26, 12:59:11