配置清单
内置配置
参见
halo-data
组件中的coreconfig.properties
配置项
缺省值
配置说明
halo.message.exception.types.0000
success:default
halo.message.exception.types.9999
faild:default
halo.message.exception.types.0001
java.lang.Exception
halo.message.exception.types.0002
java.lang.RuntimeException
halo.message.exception.types.0003
java.lang.NullPointerException
halo.message.exception.types.0004
java.sql.SQLException
halo.message.exception.types.0005
java.io.FileNotFoundException
halo.message.exception.types.0006
org.apache.shiro.authc.AuthenticationException
halo.message.exception.types.0007
java.net.ConnectException
halo.message.exception.types.0008
com.halo.core.exception.ValidateException
halo.message.exception.types.0009
com.halo.core.exception.CacheOperationException
halo.message.exception.types.0010
com.halo.core.exception.FileAccessException
halo.message.exception.types.0011
org.apache.shiro.authz.UnauthorizedException
halo.message.exception.types.0006
org.apache.shiro.authc.AuthenticationException
halo.message.exception.types.0007
java.net.ConnectException
halo.message.exception.types.0008
com.halo.core.exception.ValidateException
halo.message.exception.types.0009
com.halo.core.exception.CacheOperationException
halo.message.exception.types.0010
com.halo.core.exception.FileAccessException
halo.message.exception.types.0011
org.apache.shiro.authz.UnauthorizedException
halo.message.exception.types.0012
com.halo.core.exception.IdempotentException
halo.message.exception.types.0013
com.halo.core.exception.BatchExecuteException
halo.message.exception.types.2001
com.halo.core.exception.ValidateException
halo.message.exception.types.2002
com.halo.core.exception.CacheOperationException
halo.message.exception.types.2003
com.halo.core.exception.FileAccessException
halo.message.exception.types.6666
java.net.SocketTimeoutException
halo.message.exception.types.2011
org.apache.cxf.interceptor.Fault
halo.message.exception.types.3000
com.halo.core.exception.BusinessException
halo.message.exception.types.1001
java.lang.ClassNotFoundException
halo.message.exception.types.1002
java.lang.NoSuchMethodException
halo.message.exception.types.1003
java.lang.IllegalArgumentException
halo.message.exception.types.1004
java.lang.NumberFormatException
halo.message.exception.types.1005
java.lang.IndexOutOfBoundsException
halo.message.exception.types.1006
java.lang.UnsupportedClassVersionError
halo.message.exception.types.1007
javax.servlet.jsp.JspException
halo.message.exception.messages.0000
处理成功
执行成功,message中的消息内容
halo.message.exception.messages.9999
处理失败
执行失败,message中的默认消息内容
halo.message.exception.messages.0003
出现空值错误
出现NullPointerException时,message中的消息内容
halo.message.exception.messages.0004
数据库操作失败
出现SQLException时,message中的消息内容
halo.message.exception.messages.0005
找不到文件
出现FileNotFoundException时,message中的消息内容
halo.message.exception.messages.0006
用户认证失败
出现TokenInvalidException时,message中的消息内容
halo.message.exception.messages.0007
连接被重置
出现ConnectException时,message中的消息内容
halo.message.exception.messages.0011
用户没有操作权限
出现UnauthorizedException时,message中的消息内容
halo.message.exception.messages.2001
SOAP服务调用失败
出现WebServiceException时,message中的消息内容
halo.message.exception.messages.2002
RESTful服务调用失败
出现ProcessingException时,message中的消息内容
halo.message.exception.messages.2003
SOAP服务调用失败
出现SOAPFaultException时,message中的消息内容
halo.message.exception.messages.2011
服务执行失败
出现Fault时,message中的消息内容
halo.message.exception.messages.6666
ESB服务调用异常
出现SocketTimeoutException时,message中的消息内容
halo.message.successCode
0000
交易成功标识位
halo-xxx-starter
构件簇配置
halo-xxx-starter
构件簇配置参见
halo-webapp-starter
,halo-serviceapp-starter
,halo-batchapp-starter
等构件簇中的bootstrap.properties
配置项
缺省值
配置说明
info.app.type
webapp
,serviceapp
,batchapp
应用类型
info.app.java.source
1.8
JAVA源码版本
info.app.java.target
1.8
JAVA源码编译版本
info.app.encoding
UTF-8
应用内部使用的字符集
spring.application.name
${info.app.name}-${info.app.type}
应用名称。通过info.app.name
和info.app.type
拼接而成。
server.port
9001
,9002
,9003
应用内嵌的tomcat/netty/jetty监听的端口。
server.servlet.path
/web/*
通过spring-mvc对外暴露http地址中的二级路径
server.servlet.context-path
/${info.app.name:example}/${info.app.type}
应用内嵌的tomcat/netty/jetty的context-path
路径监听。
spring.http.encoding.enabled
true
开启spring对http请求中的字符编码过滤转换
spring.http.encoding.force
true
强制对http请求的字符编码做过滤
management.endpoints.web.cors.allowed-origins
*
actuator的跨站访问开关
management.endpoints.web.cors.allowed-methods
GET,POST
允许actuator跨站访问的HTTP方法
management.endpoint.shutdown.enabled
true
应用的远程关闭控制服务开关
management.endpoint.bus-env.enabled
true
应用的事件总线管理开关
management.endpoint.bus-refresh.enabled
true
事件总线对环境配置的刷新控制
management.endpoint.hystrix.stream.enabled
true
hystrix的流式监控管理
management.health.zookeeper.enabled
true
zookeeper的健康检查
management.endpoints.jmx.exposure.include
*
通过JMX做监控管理
management.endpoints.web.exposure.include
*
通过WEB做监控管理
management.endpoint.health.show-details
always
健康检查服务中是否显示详情
management.endpoints.web.base-path
/eyes
基于WEB的监控管理对外暴露的服务路径(以${server.servlet.context-path}
为base的三级url)
spring.cloud.config.server.bootstrap
true
开启配置服务的开关(虽然默认值为true,但是由于没有集成spring-config-server
组件。所以不会开启配置中心服务)
spring.cloud.config.server.prefix
config
当集成了spring-config-server
组件,并开启${spring.cloud.config.server.bootstrap}
属性后,对配置管理中心读取内容时的前缀
spring.cloud.zookeeper.enabled
true
zookeeper连接服务开关
spring.cloud.bus.id
${info.app.hostName}:${server.port}
spring-bus
在MQ创建队列时的名称
spring.cloud.bus.destination
${spring.application.name}-bus
spring-bus
在MQ上监听和消费内容时用的exchange和groupid
spring.cloud.service-registry.auto-registration.enabled
false
spring-cloud
的服务自动注册开关
halo-web
构件配置
halo-web
构件配置参见
halo-webapp-starter
,halo-serviceapp-starter
,halo-batchapp-starter
等构件簇中的additional-spring-configuration-metadata.json
{
"properties": [
{
"name": "halo.config.resourcePaths",
"type": "java.util.List<java.lang.String>",
"description": "本地properties配置文件的位置清单.",
"defaultValue": "classpath*:/*.properties"
},
{
"name": "halo.initTask.applicationContextType",
"type": "java.lang.Class",
"description": "在InitializingTask实现时,向execute方法传递的applicationContext类型.",
"defaultValue": "org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext"
},
{
"name": "halo.web.session.test.enabled",
"type": "java.lang.Boolean",
"description": "是否启用测试模式.与{web.auth.test.enabled}等同.",
"defaultValue": false
},
{
"name": "halo.web.session.test.userId",
"type": "java.lang.String",
"description": "测试用户标识.与{web.auth.test.user}等同."
},
{
"name": "halo.web.session.test.authCode",
"type": "java.lang.String",
"description": "测试使用oauth2认证的authcode."
},
{
"name": "halo.web.session.test.accessToken",
"type": "java.lang.String",
"description": "测试使用oauth2认证的accessToken."
},
{
"name": "halo.web.session.userKey",
"type": "java.lang.String",
"description": "在session中用户信息存储的key.与{web.auth.token.session.username}等同.",
"defaultValue": "_USERID"
},
{
"name": "halo.web.session.timeout",
"type": "java.lang.Long",
"description": "session会话超时时间.与{web.session.timeout}等同.",
"defaultValue": 1800000
},
{
"name": "halo.web.session.cookiesId",
"type": "java.lang.String",
"description": "sessionId在cookies中传递时用的key.",
"defaultValue": "_HALOSESSIONID"
},
{
"name": "halo.web.session.sessionValidationSchedulerEnabled",
"type": "java.lang.Boolean",
"description": "定期验证session有效性.",
"defaultValue": false
},
{
"name": "halo.web.maxUploadSize",
"type": "java.lang.Integer",
"description": "上传的最大容量(MB).与{web.maxUploadSize}等同.",
"defaultValue": 5
},
{
"name": "halo.web.uploadFileExtensions",
"type": "java.util.List<java.lang.String>",
"description": "允许上传的文件后缀.与{web.uploadFileExtensions}等同."
},
{
"name": "halo.web.csrf.interval",
"type": "java.lang.Long",
"description": "CSRF允许通过的间隔容忍差值毫秒数.与{web.csrf.interval}等同.",
"defaultValue": 600000
},
{
"name": "halo.web.csrf.tokenSeed",
"type": "java.lang.String",
"description": "优先将对应的值作为种子信息来对token解密.设定要前后端一致.与{web.csrf.token.seed}等同."
},
{
"name": "halo.web.csrf.excludeUrls",
"type": "java.util.List<java.lang.String>",
"description": "排除验证token的url列表.与{web.csrf.exclude.urls}等同."
}
]
}
halo-batch
构件配置
halo-batch
构件配置参见
halo-webapp-starter
,halo-serviceapp-starter
,halo-batchapp-starter
等构件簇中的additional-spring-configuration-metadata.json
{
"properties": [
{
"name": "halo.batch.maxVarCharLength",
"type": "java.lang.Integer",
"description": "SpringBatch的*_CONTEXT表允许存储的最大消息文本字节数.与{batch.maxVarCharLength}等同.",
"defaultValue": 2500
},
{
"name": "halo.batch.concurrencyLimit",
"type": "java.lang.Integer",
"description": "执行异步批作业Job的线程池大小.与{batch.concurrencyLimit}等同.",
"defaultValue": 1000
},
{
"name": "halo.batch.threadCount",
"type": "java.lang.Integer",
"description": "执行批作业的最大线程数,批作业总数量应当小于该值.与{batch.threadCount}等同.",
"defaultValue": 1000
},
{
"name": "halo.batch-trigger.dasc.qos",
"type": "java.lang.Integer",
"description": "以DASC方式触发批作业执行的qos配置.",
"defaultValue": 1
},
{
"name": "halo.batch-trigger.dasc.retry",
"type": "java.lang.Integer",
"description": "以DASC方式触发批作业执行的retry配置.",
"defaultValue": 2
}
]
}
halo-cache
构件配置
halo-cache
构件配置参见
halo-webapp-starter
,halo-serviceapp-starter
,halo-batchapp-starter
等构件簇中的additional-spring-configuration-metadata.json
{
"properties": [
{
"name": "halo.cache.dynamic",
"type": "java.lang.Boolean",
"description": "是否启用动态缓存服务.与{cache.dynamic}等同.",
"defaultValue": false
},
{
"name": "halo.cache.namespace",
"type": "java.lang.String",
"description": "应用缓存的命名空间.{cache.name}等同.",
"defaultValue": "${info.app.name}"
},
{
"name": "halo.cache.redis.default.mode",
"type": "com.halo.core.cache.models.RedisMode",
"description": "默认Redis数据源的运行模式.与{cache.redis.default.mode}等."
},
{
"name": "halo.cache.redis.default.addresses",
"type": "java.lang.String",
"description": "默认Redis数据源的地址(host1:port1;host2:port2).与{cache.redis.default.addresses}等同."
},
{
"name": "halo.cache.redis.default.password",
"type": "java.lang.String",
"description": "默认Redis数据源的密码.与{cache.redis.default.password}等同."
},
{
"name": "halo.cache.redis.default.timeout",
"type": "java.lang.Integer",
"description": "默认Redis数据源获取连接的毫秒超时.与{cache.redis.default.timeout}等同.",
"defaultValue": 10000
},
{
"name": "halo.cache.redis.default.maxRedirections",
"type": "java.lang.Integer",
"description": "当默认Redis数据源以CLUSTER运行,允许访问重定向的最大次数.与{cache.redis.default.maxRedirections}等同.",
"defaultValue": 6
},
{
"name": "halo.cache.redis.default.maxIdle",
"type": "java.lang.Integer",
"description": "默认Redis数据源的连接池允许最大空闲连接数.与{cache.redis.default.maxIdle}等同.",
"defaultValue": 20
},
{
"name": "halo.cache.redis.default.maxActive",
"type": "java.lang.Integer",
"description": "默认Redis数据源连接池允许最大活跃连接数。默认为1024。与{cache.redis.default.maxActive}等同.",
"defaultValue": 1024
},
{
"name": "halo.cache.redis.default.maxWait",
"type": "java.lang.Long",
"description": "默认Redis数据源连接池获取连接最大等待毫秒时长.与{cache.redis.default.maxWait}等同.",
"defaultValue": 1000
},
{
"name": "halo.cache.redis.default.testOnBorrow",
"type": "java.lang.Boolean",
"description": "默认Redis数据源连接池获取连接的连通性检查.与{cache.redis.default.testOnBorrow}等同.",
"defaultValue": false
}
]
}
halo-cxf
构件配置
halo-cxf
构件配置参见
halo-webapp-starter
,halo-serviceapp-starter
,halo-batchapp-starter
等构件簇中的additional-spring-configuration-metadata.json
{
"properties": [
{
"name": "halo.cxf.endpointName",
"type": "java.lang.String",
"description": "Endpoint唯一性的标识.与{ws.common.name}等同.",
"defaultValue": "${spring.application.name}"
},
{
"name": "halo.cxf.servicePath",
"type": "java.lang.String",
"description": "服务根路径.",
"defaultValue": "/services/*"
},
{
"name": "halo.cxf.swaggerPath",
"type": "java.lang.String",
"description": "swaggerUI服务路径.",
"defaultValue": "/api"
},
{
"name": "halo.cxf.logEnabled",
"type": "java.lang.Boolean",
"description": "是否输出报文日志.与{ws.common.logging}等同.",
"defaultValue": true
},
{
"name": "halo.cxf.soapNamespace",
"type": "java.lang.String",
"description": "SOAP服务的命名空间.与{ws.service.soap.namespace}等同.",
"defaultValue": ""
},
{
"name": "halo.cxf.defaultTimeout",
"type": "java.lang.Long",
"description": "调用等待超时设定.与{ws.client.timeout}等同.",
"defaultValue": 600000
},
{
"name": "halo.cxf.soapHeaderEnabled",
"type": "java.lang.Boolean",
"description": "SOAP报文传输的报文头开关.与{ws.protocol.soap.header}等同.",
"defaultValue": true
},
{
"name": "halo.cxf.restHeaderEnabled",
"type": "java.lang.Boolean",
"description": "JSON报文传输的报文头开关.与{ws.protocol.rest.header}等同.",
"defaultValue": true
},
{
"name": "halo.cxf.restPath",
"type": "java.lang.String",
"description": "rest服务的二级路径约定.",
"defaultValue": "rest"
},
{
"name": "halo.cxf.soapPath",
"type": "java.lang.String",
"description": "soap服务的二级路径约定.",
"defaultValue": "soap"
},
{
"name": "halo.message.successCode",
"type": "java.lang.String",
"description": "报文头中交易成功标识.与{ws.common.successcode}等同.",
"defaultValue": "0000"
}
]
}
halo-dao
构件配置
halo-dao
构件配置参见
halo-webapp-starter
,halo-serviceapp-starter
,halo-batchapp-starter
等构件簇中的additional-spring-configuration-metadata.json
{
"properties": [
{
"name": "halo.dao.dynamic",
"type": "java.lang.Boolean",
"description": "数据库动态路由开关.与{jdbc.dynamic}等同.",
"defaultValue": false
},
{
"name": "halo.dao.dataSourceList",
"type": "java.util.List<java.lang.String>",
"description": "数据源列表.与{jdbc.dynamic.list}等同."
},
{
"name": "halo.dao.log.connectionEnabled",
"type": "java.lang.Boolean",
"description": "打印数据库连接操作日志.与{jdbc.debug.logging}等同.",
"defaultValue": true
},
{
"name": "halo.dao.log.statementEnabled",
"type": "java.lang.Boolean",
"description": "打印SQL执行日志。与{jdbc.debug.logging}等同.",
"defaultValue": true
},
{
"name": "halo.dao.log.errorEnabled",
"type": "java.lang.Boolean",
"description": "打印数据库操作错误日志.",
"defaultValue": true
},
{
"name": "halo.dao.log.resultSetEnabled",
"type": "java.lang.Boolean",
"description": "打印sql执行的结果集日志.",
"defaultValue": false
},
{
"name": "halo.dao.log.loggerName",
"type": "java.lang.String",
"description": "数据库操作日志输出时的logger名称.",
"defaultValue": "HALO_DAO"
},
{
"name": "halo.dao.stat.slowSqlMillis",
"type": "java.lang.Long",
"description": "定义慢SQL的超时毫秒.",
"defaultValue": 5000
},
{
"name": "halo.dao.stat.logSlowSql",
"type": "java.lang.Boolean",
"description": "记录慢SQL开关.",
"defaultValue": true
},
{
"name": "halo.dao.stat.mergeSql",
"type": "java.lang.String",
"description": "对慢SQL记录进行合并.",
"defaultValue": true
},
{
"name": "halo.dao.jdbc.default.url",
"type": "java.lang.String",
"description": "默认数据源的访问地址.与{jdbc.ds.default.url}等同."
},
{
"name": "halo.dao.jdbc.default.username",
"type": "java.lang.String",
"description": "默认数据源的访问用户名.与{jdbc.ds.default.user}等同."
},
{
"name": "halo.dao.jdbc.default.password",
"type": "java.lang.String",
"description": "默认数据源的访问密码.与{jdbc.ds.default.password}等同."
},
{
"name": "halo.dao.jdbc.default.decryptEnabled",
"type": "java.lang.Boolean",
"description": "默认数据源的访问密码加密开关.与{jdbc.password.decrypt}等同.",
"defaultValue": false
},
{
"name": "halo.dao.jdbc.default.decryptKey",
"type": "java.lang.String",
"description": "默认数据源的访问密码的解密公钥.与{jdbc.ds.read.password.publickey}等同."
},
{
"name": "halo.dao.jdbc.default.initialSize",
"type": "java.lang.Integer",
"description": "默认数据源连接池初始连接数.与{jdbc.initConnectionCount}等同.",
"defaultValue": 3
},
{
"name": "halo.dao.jdbc.default.minIdle",
"type": "java.lang.Integer",
"description": "默认数据源连接池最小空闲连接数.与{jdbc.minConnectionCount}等同.",
"defaultValue": 3
},
{
"name": "halo.dao.jdbc.default.maxActive",
"type": "java.lang.Long",
"description": "默认数据源连接获取与执行的最大等待毫秒数.与{jdbc.maxWait}等同.",
"defaultValue": 1000
},
{
"name": "halo.dao.jdbc.default.poolPreparedStatements",
"type": "java.lang.Boolean",
"description": "默认数据源的oracle调优参数(分库分表较多时建议设为false).与{jdbc.poolPreparedStatements}等同.",
"defaultValue": true
},
{
"name": "halo.dao.jdbc.default.maxPoolPreparedStatementPerConnectionSize",
"type": "java.lang.Integer",
"description": "默认数据源单连接一次最多的perparedstatement数.与{jdbc.maxPoolPreparedStatementPerConnectionSize}等同.",
"defaultValue": 20
},
{
"name": "halo.dao.jdbc.default.transactionTimeout",
"type": "java.lang.Integer",
"description": "默认数据源的事务超时秒数.与{jdbc.transaction.timeout}等同.",
"defaultValue": 60
},
{
"name": "halo.dao.jdbc.default.testOnBorrow",
"type": "java.lang.Boolean",
"description": "默认数据源获取连接的连通检测.与{jdbc.testOnBorrow}等同.",
"defaultValue": false
},
{
"name": "halo.dao.jdbc.default.validationQuery",
"type": "java.lang.String",
"description": "默认数据源连通测试sql.与{jdbc.validationQuery}等同."
}
]
}
halo-dasc
构件配置
halo-dasc
构件配置参见
halo-webapp-starter
,halo-serviceapp-starter
,halo-batchapp-starter
等构件簇中的additional-spring-configuration-metadata.json
{
"properties": [
{
"name": "halo.dasc.namespace",
"type": "java.lang.String",
"description": "dasc命名空间.与{dasc.name}等同.",
"defaultValue": "${spring.application.name}"
},
{
"name": "halo.dasc.testMode",
"type": "java.lang.Boolean",
"description": "标记应用是否是测试模式.与{dasc.test.id}作用等同.",
"defaultValue": false
},
{
"name": "halo.dasc.groupId",
"type": "java.lang.String",
"description": "DASC服务和消费的分组标识.与{dasc.test.id}作用等同."
},
{
"name": "halo.dasc.confirmTimeout",
"type": "java.lang.Long",
"description": "消息发送等待超时设定。默认为1000。与{dasc.send.ack.timeout}等同.",
"defaultValue": 1000
},
{
"name": "halo.dasc.messageLimit",
"type": "java.lang.Long",
"description": "消息大小限制(KB).与{dasc.caller.args.limit}+{dasc.caller.return.limit}等同.",
"defaultValue": 100
},
{
"name": "halo.dasc.request.address",
"type": "java.lang.String",
"description": "调用方提供参数列表服务的REST服务地址.与{dasc.caller.args.address}等同."
},
{
"name": "halo.dasc.response.address",
"type": "java.lang.String",
"description": "服务方提供返回值服务的REST服务地址.与{dasc.provider.return.address}等同."
}
]
}
halo-filestore
构件配置
halo-filestore
构件配置参见
halo-webapp-starter
,halo-serviceapp-starter
,halo-batchapp-starter
等构件簇中的additional-spring-configuration-metadata.json
{
"properties": [
{
"name": "halo.file.enabled",
"type": "java.lang.Boolean",
"description": "文件存储服务开关.与{fs.enabled}等同.",
"defaultValue": true
},
{
"name": "halo.file.namespace",
"type": "java.lang.String",
"description": "文件存储服务命名空间.与{fs.name}等同.",
"defaultValue": "${info.app.name}"
},
{
"name": "halo.file.protocol",
"type": "com.halo.core.filestore.model.RepositoryType",
"description": "资源访问协议.与{fs.protocol}等同.",
"defaultValue": "DISK"
},
{
"name": "halo.file.tempDir",
"type": "java.lang.String",
"description": "本地临时文件夹路径.与{fs.tmpdir}等同.",
"defaultValue": "/tmp"
},
{
"name": "halo.file.backupOnUpdate",
"type": "java.lang.Boolean",
"description": "当进行资源更新操作时进行备份操作.与{fs.backupOnUpdate}等同.",
"defaultValue": true
},
{
"name": "halo.file.disk.baseDir",
"type": "java.lang.String",
"description": "本地存储的仓库的基础路径.与{fs.file.basedir}等同.",
"defaultValue": "repository/${info.app.name}"
},
{
"name": "halo.file.mongo.address",
"type": "java.lang.String",
"description": "mongodb存储的访问地址.与{fs.mongo.address}等同."
},
{
"name": "halo.file.mongo.userName",
"type": "java.lang.String",
"description": "mongodb存储的访问用户名.与{fs.mongo.username}等同."
},
{
"name": "halo.file.mongo.password",
"type": "java.lang.String",
"description": "mongodb存储的访问密码.与{fs.mongo.password}等同."
},
{
"name": "halo.file.mongo.chunk",
"type": "java.lang.Integer",
"description": "mongodb存储的块大小.与{fs.mongo.chunk}等同.",
"defaultValue": 1024
},
{
"name": "halo.file.ftp.address",
"type": "java.lang.String",
"description": "FTP存储的访问地址.与{fs.ftp.address}等同."
},
{
"name": "halo.file.ftp.userName",
"type": "java.lang.String",
"description": "FTP存储的访问用户名.与{fs.ftp.username}等同."
},
{
"name": "halo.file.ftp.password",
"type": "java.lang.String",
"description": "FTP存储的访问密码.与{fs.ftp.password}等同."
}
]
}
halo-log
构件配置
halo-log
构件配置参见
halo-webapp-starter
,halo-serviceapp-starter
,halo-batchapp-starter
等构件簇中的additional-spring-configuration-metadata.json
{
"properties": [
{
"name": "halo.log.argsEnabled",
"type": "java.lang.Boolean",
"description": "全局设置记录方法的入参.",
"defaultValue": false
},
{
"name": "halo.log.returnEnabled",
"type": "java.lang.Boolean",
"description": "全局设置记录方法的返回值.",
"defaultValue": false
},
{
"name": "halo.log.mode",
"type": "com.halo.core.log.models.LogMode",
"description": "日志运行模式.与{log.detail.mode}等同.",
"defaultValue": "BLACK_LIST"
},
{
"name": "halo.log.blacklist",
"type": "java.util.List<java.lang.String>",
"description": "以黑名单模式,对特定的类路径方法调用明细记录设置.与{log.detail.blacklist}等同."
},
{
"name": "halo.log.whitelist",
"type": "java.util.List<java.lang.String>",
"description": "以白名单模式,对特定的类路径方法调用明细记录设置.与{log.detail.whitelist}等同."
}
]
}
halo-rabbit
构件配置
halo-rabbit
构件配置参见
halo-webapp-starter
,halo-serviceapp-starter
,halo-batchapp-starter
等构件簇中的additional-spring-configuration-metadata.json
{
"properties": [
{
"name": "halo.rabbit.extendQueueList",
"type": "java.util.List<java.lang.String>",
"description": "扩展的rabbitmq源列表.与{queue.list}等同."
},
{
"name": "halo.rabbit.default.addresses",
"type": "java.util.List<java.lang.String>",
"description": "默认broker的地址.与{queue.addresses}等同."
},
{
"name": "halo.rabbit.default.username",
"type": "java.lang.String",
"description": "默认broker连接的用户名.与{queue.username}等同."
},
{
"name": "halo.rabbit.default.password",
"type": "java.lang.String",
"description": "默认broker连接的密码.与{queue.password}等同."
},
{
"name": "halo.rabbit.default.recovery.enabled",
"type": "java.lang.Boolean",
"description": "默认broker是否自动恢复连接.与{queue.recovery.enabled}等同.",
"defaultValue": true
},
{
"name": "halo.rabbit.default.recovery.interval",
"type": "java.lang.Integer",
"description": "默认broker连接自动恢复的执行毫秒间隔.与{queue.recovery.interval}等同.",
"defaultValue": 10000
},
{
"name": "halo.rabbit.default.heartbeatInterval",
"type": "java.lang.Integer",
"description": "默认broker的心跳检测秒数间隔.与{queue.heartbeat.interval}等同.",
"defaultValue": 60
}
]
}
halo-kafka
构件配置
halo-kafka
构件配置参见
halo-webapp-starter
,halo-serviceapp-starter
,halo-batchapp-starter
等构件簇中的additional-spring-configuration-metadata.json
{
"properties": [
{
"name": "halo.kafka.producer.default",
"type": "java.util.Map<java.lang.String,java.lang.String>",
"description": "默认kafka源在发送方的配置.与{kafka.producer.*}等同."
},
{
"name": "halo.kafka.consumer.default",
"type": "java.util.Map<java.lang.String,java.lang.String>",
"description": "默认kafka源在发送方的配置.与{kafka.consumer.*}等同."
}
]
}
halo-idemp
构件配置
halo-idemp
构件配置参见
halo-webapp-starter
,halo-serviceapp-starter
,halo-batchapp-starter
等构件簇中的additional-spring-configuration-metadata.json
{
"properties": [
{
"name": "halo.idemp.dao",
"type": "java.lang.String",
"description": "幂等状态存储:db(数据库),cache(缓存).",
"defaultValue": "db"
}
]
}
halo-chopper
构件配置
halo-chopper
构件配置参见
halo-webapp-starter
,halo-serviceapp-starter
,halo-batchapp-starter
等构件簇中的additional-spring-configuration-metadata.json
{
"properties": [
{
"name": "halo.chopper",
"type": "java.util.Map<java.lang.String,java.lang.String>",
"description": "chopper框架的配置信息."
}
]
}
halo-tune
构件配置
halo-tune
构件配置参见
halo-webapp-starter
,halo-serviceapp-starter
,halo-batchapp-starter
等构件簇中的additional-spring-configuration-metadata.json
{
"properties": [
{
"name": "halo.dbchecker.sql",
"type": "java.lang.String",
"description": "获取数据库版本的sql语句.",
"defaultValue": "SELECT \"version\" FROM %s"
},
{
"name": "halo.dbchecker.tableName",
"type": "java.lang.String",
"description": "数据库版本号所在的表名.与{zk.version.db.tablename}等同.",
"defaultValue": "SCHEMA_VERSION"
},
{
"name": "halo.gcs.sql",
"type": "java.lang.String",
"description": "获取数据库服务器当前时间的sql.",
"defaultValue": "select 1 from dual"
}
]
}
Last updated