跳至主要內容

配置

码匠君SASSpring Authorization ServerDante Cloud微服务领域驱动DDDSpring BootSpring CloudSpring SecuritySpring Cloud AlibabaSpring Cloud TencentOAuth2.1NacosSkywalkingSentinelSeata大约 2 分钟

配置

说明

以下内容为 dante-cloud-environment.yaml 配置

herodotus.environment

logstash-server-addr

  • Type: String | Boolean
  • Default: false

日志中心 Logstash 连接 TCP 地址。Logstash连接默认端口:5044

  • Example:127.0.0.1:5044

提示

如果设置成false,则关闭日志收集组件与日志中心Logstash的连接。如果无法连接Logstash则会抛错

gateway-server-addr

  • Type: String
  • Default: ""

服务网关地址,Gateway 服务默认端口:8847

  • Example:http://localhost:8847

database.host

  • Type: String
  • Default: ""

数据库连接地址。

  • Example:127.0.0.1

database.port

  • Type: String
  • Default: ""

数据库连接端口。

  • Example:5432

database.nameopen in new window

  • Type: String
  • Default: ""

数据库名。

database.username

  • Type: String
  • Default: ""

数据库登录用户名。

database.password

  • Type: String
  • Default: ""

数据库登录密码。

redis.host

  • Type: String
  • Default: ""

Redis连接地址。

  • Example:127.0.0.1

redis.port

  • Type: String
  • Default: 6379

Redis连接端口。

  • Example:6379

redis.password

  • Type: String
  • Default: ""

Redis连接密码。

kafka.bootstrap-servers

  • Type: String
  • Default: ""

Kafka连接地址连接地址。Kafka连接默认端口9092

  • Example:127.0.0.1:9092

herodotus.switch

database.ddl-auto

  • Type: Enum
  • Default: ""
  • Values: create,create-drop,update,validate,none

配置 Spring Data JPA 自动 DDL 处理状态。参阅:数据初始化

database.init-mode

  • Type: Enum
  • Default: ""
  • Values: never,always,embedded

配置 Spring Data JPA 自动 DDL 处理状态。参阅:数据初始化

database.use-second-level-cache

  • Type: Boolean
  • Default: false

是否开启 Spring Data JPA 二级缓存

database.show-sql

  • Type: Boolean
  • Default: false

是否在日志中输出 Hibernate HQL 调试日志

database.format-sql

  • Type: Boolean
  • Default: false

是否对日志中输出 Hibernate 的 HQL 调试日志进行格式美化

database.generate-statistics

  • Type: Boolean
  • Default: false

是否开启 Hibernate SQL 运行分析

swagger.enabled

  • Type: Boolean
  • Default: false

是否开启 Swagger API 文档

herodotus.management

log-center.server-addr

  • Type: String | Boolean
  • Default: false

日志中心 Logstash 连接 TCP 地址。Logstash连接默认端口:5044。具体值与herodotus.environment.logstash-server-addr 相同

  • Example:127.0.0.1:5044

log-center.loggers

  • Type: Map<String, LogLevel>
  • Default: null

指定输出到日志中心的日志级别,以及具体日志内容

  • Example:127.0.0.1:5044
cn.herodotus.dante: debug
org.springframework.security: debug
com.alibaba.nacos.client.naming: error