内置配置
参见halo-data
组件中的coreconfig.properties
halo-xxx-starter
构件簇配置
参见halo-webapp-starter
,halo-serviceapp-starter
,halo-batchapp-starter
等构件簇中的bootstrap.properties
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-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-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-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-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-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-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-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-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-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-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-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-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"
}
]
}