配置清单

内置配置

参见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-webapp-starterhalo-serviceapp-starterhalo-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.nameinfo.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-webapp-starterhalo-serviceapp-starterhalo-batchapp-starter等构件簇中的additional-spring-configuration-metadata.json

halo-batch构件配置

参见halo-webapp-starterhalo-serviceapp-starterhalo-batchapp-starter等构件簇中的additional-spring-configuration-metadata.json

halo-cache构件配置

参见halo-webapp-starterhalo-serviceapp-starterhalo-batchapp-starter等构件簇中的additional-spring-configuration-metadata.json

halo-cxf构件配置

参见halo-webapp-starterhalo-serviceapp-starterhalo-batchapp-starter等构件簇中的additional-spring-configuration-metadata.json

halo-dao构件配置

参见halo-webapp-starterhalo-serviceapp-starterhalo-batchapp-starter等构件簇中的additional-spring-configuration-metadata.json

halo-dasc构件配置

参见halo-webapp-starterhalo-serviceapp-starterhalo-batchapp-starter等构件簇中的additional-spring-configuration-metadata.json

halo-filestore构件配置

参见halo-webapp-starterhalo-serviceapp-starterhalo-batchapp-starter等构件簇中的additional-spring-configuration-metadata.json

halo-log构件配置

参见halo-webapp-starterhalo-serviceapp-starterhalo-batchapp-starter等构件簇中的additional-spring-configuration-metadata.json

halo-rabbit构件配置

参见halo-webapp-starterhalo-serviceapp-starterhalo-batchapp-starter等构件簇中的additional-spring-configuration-metadata.json

halo-kafka构件配置

参见halo-webapp-starterhalo-serviceapp-starterhalo-batchapp-starter等构件簇中的additional-spring-configuration-metadata.json

halo-idemp构件配置

参见halo-webapp-starterhalo-serviceapp-starterhalo-batchapp-starter等构件簇中的additional-spring-configuration-metadata.json

halo-chopper构件配置

参见halo-webapp-starterhalo-serviceapp-starterhalo-batchapp-starter等构件簇中的additional-spring-configuration-metadata.json

halo-tune构件配置

参见halo-webapp-starterhalo-serviceapp-starterhalo-batchapp-starter等构件簇中的additional-spring-configuration-metadata.json

Last updated