最全的springboot之application.properties配置文件详解

 为方便自己使用,在全网找的最全的application.properties配置文件详解,需要的时候可以来这里找一下

目录

1.网友的配置

2.王军伟老师的总结


1.网友的配置

转载自https://blog.csdn.net/xingbaozhen1210/article/details/84063997?tt_from=weixin&utm_source=weixin&utm_medium=toutiao_ios&utm_campaign=client_share&wxshare_count=1

# REDIS (Redis 配置)
# 连接工厂使用的数据库索引
spring.redis.database= 0
# Redis服务器主机
spring.redis.host=
# redis服务器端口
spring.redis.port= 6379
# 登录redis服务器的密码
spring.redis.password=
# 给定时间池可以分配的最大连接数 使用负值为无限制
spring.redis.pool.max-active= 8
# 连接分配在池耗尽之前在抛出异常之前应阻止的最大时间量(连接池最大阻塞等待时间以毫秒为单位) 使用负值无限期地阻止
spring.redis.pool.max-wait= -1
# 连接池中的最大空闲连接 使用负值来表示无限数量的空闲连接
spring.redis.pool.max-idle= 8
# 连接池中的最小空闲连接 此设置只有在正值时才有效果
spring.redis.pool.min-idle= 0
# 连接超时(毫秒)
spring.redis.timeout=30000
# redis服务器名称
spring.redis.sentinel.master=
# redis子节点服务器名称
spring.redis.sentinel.nodes=




# spring 视图分解器 配置
# 启用后退解析支持
spring.mobile.devicedelegatingviewresolver.enable-fallback= false
# 启用设备视图解析器
spring.mobile.devicedelegatingviewresolver.enabled= false
# 前缀,用于查看移动设备的名称
spring.mobile.devicedelegatingviewresolver.mobile-prefix= mobile/
# 后缀,附加到查看移动设备的名称
spring.mobile.devicedelegatingviewresolver.mobile-suffix=
# 前缀,用于查看普通设备的名称
spring.mobile.devicedelegatingviewresolver.normal-prefix=
# 后缀,附加到查看普通设备的名称
spring.mobile.devicedelegatingviewresolver.normal-suffix=
# 前缀,用于查看平板设备的名称
spring.mobile.devicedelegatingviewresolver.tablet-prefix= tablet/
# 后缀,附加到查看平板电脑设备的名称
spring.mobile.devicedelegatingviewresolver.tablet-suffix=


# 移动网站首选项 (站点首选项自动配置)
# 启用SitePreferenceHandler
spring.mobile.sitepreference.enabled= true


# MUSTACHE模板(Mustache AutoConfiguration)
# 启用模板缓存
spring.mustache.cache= false
# 模板编码
spring.mustache.charset= UTF-8
# 检查模板位置是否存在
spring.mustache.check-template-location= true
# Content-Type值
spring.mustache.content-type= text/html
# 启用此技术的MVC视图分辨率
spring.mustache.enabled= true
# 前缀应用于模板名称
spring.mustache.prefix= classpath:/templates/
# 后缀应用于模板名称
spring.mustache.suffix= .html
# 可以解决的视图名称的白名单
spring.mustache.view-names=


# SPRING MVC (Web Mvc 配置)
# 异步请求处理超时之前的时间量(以毫秒为单位)
spring.mvc.async.request-timeout=
# 要使用的日期格式 例如`dd / MM / yyyy`
spring.mvc.date-format=
# 发送TRACE请求到FrameworkServlet doService方法
spring.mvc.dispatch-trace-request= false
# 发送OPTIONS请求到FrameworkServlet doService方法
spring.mvc.dispatch-options-request= false
# 启用favicon.ico的解析
spring.mvc.favicon.enabled= true
# 如果在重定向方案期间应该忽略“默认”模型的内容
spring.mvc.ignore-default-model-on-redirect= true
# 要使用的区域设置
spring.mvc.locale=
# 将文件扩展名映射到内容协商的媒体类型
spring.mvc.media-types.*=
# 消息代码格式策略 例如`PREFIX_ERROR_CODE`
spring.mvc.message-codes-resolver-format=
# 用于静态资源的路径模式
spring.mvc.static-path-pattern= /**
# 如果没有发现处理程序来处理请求,则应抛出“NoHandlerFoundException”
spring.mvc.throw-exception-if-no-handler-found= false
# Spring MVC视图前缀
spring.mvc.view.prefix=
# Spring MVC视图后缀
spring.mvc.view.suffix=


 #SPRING RESOURCES HANDLING(ResourceProperties)资源处理
spring.resources.add-mappings = true #启用默认资源处理
spring.resources.cache-period = #由资源处理程序提供的资源的缓存期,以秒为单位
spring.resources.chain.cache = true #在资源链中启用缓存
spring.resources.chain.enabled = #启用Spring资源处理链默认情况下禁用,除非启用了至少一个策略
spring.resources.chain.html-application-cache = false #启用HTML5应用程序缓存清单重写
spring.resources.chain.strategy.content.enabled = false #启用内容版本策略
spring.resources.chain.strategy.content.paths = / ** #应用于版本策略的模式的逗号分隔列表
spring.resources.chain.strategy.fixed.enabled = false #启用固定版本策略
spring.resources.chain.strategy.fixed.paths = #应用于版本策略的逗号分隔的模式列表
spring.resources.chain.strategy.fixed.version = #用于版本策略的版本字符串
spring.resources.static-locations = classpath:/ META-INF / resources /,classpath:/ resources /,classpath:/ static /,classpath:/ public / #静态资源的位置


 #SPRING SOCIAL(SocialWebAutoConfiguration)集群
spring.social.auto-connection-views = false #启用支持的提供程序的连接状态视图


 #SPRING SOCIAL FACEBOOK(FacebookAutoConfiguration)
spring.social.facebook.app-id = #您的应用程序的Facebook应用程序ID
spring.social.facebook.app-secret = #你的应用程序的Facebook应用程序密码


 #SPRING SOCIAL LINKEDIN(LinkedInAutoConfiguration)
spring.social.linkedin.app-id = #您的应用程序的LinkedIn应用程序ID
spring.social.linkedin.app-secret = #您的应用程序的LinkedIn App Secret


 #SPRING SOCIAL TWITTER(TwitterAutoConfiguration)
spring.social.twitter.app-id = #你的应用程序的Twitter应用程序ID
spring.social.twitter.app-secret = #你的应用程序的Twitter App Secret


 #THYMELEAF Thymeleaf模板引擎配置
spring.thymeleaf.cache = true #启用模板缓存
spring.thymeleaf.check-template-location = true #检查模板位置是否存在
spring.thymeleaf.content-type = text / html #Content-Type值
spring.thymeleaf.enabled = true #启用MVC Thymeleaf视图分辨率
spring.thymeleaf.encoding = UTF-8 #模板编码
spring.thymeleaf.excluded-view-names = #应该从解决方案中排除的视图名称的逗号分隔列表
spring.thymeleaf.mode = HTML5 #应用于模板的模板模式另请参见StandardTemplateModeHandlers
spring.thymeleaf.prefix = classpath:/ templates / #在构建URL时预先查看名称的前缀
spring.thymeleaf.suffix = .html #构建URL时附加查看名称的后缀
spring.thymeleaf.template-resolver-order = #链中模板解析器的顺序
spring.thymeleaf.view-names = #可以解析的视图名称的逗号分隔列表


 #VELOCITY TEMPLATES(VelocityAutoConfiguration)
spring.velocity.allow-request-override = false #设置是否允许HttpServletRequest属性覆盖(隐藏)控制器生成的同名的模型属性
spring.velocity.allow-session-override = false #设置是否允许HttpSession属性重写(隐藏)控制器生成的同名的模型属性
spring.velocity.cache = #启用模板缓存
spring.velocity.charset = UTF-8 #模板编码
spring.velocity.check-template-location = true #检查模板位置是否存在
spring.velocity.content-type = text / html #Content-Type值
spring.velocity.date-tool-attribute = #在视图的Velocity上下文中公开的DateTool辅助对象的名称
spring.velocity.enabled = true #启用此技术的MVC视图分辨率
spring.velocity.expose-request-attributes = false #设置在与模板合并之前是否应将所有请求属性添加到模型中
spring.velocity.expose-session-attributes = false #设置在与模板合并之前是否应将所有HttpSession属性添加到模型中
spring.velocity.expose-spring-macro-helpers = true #设置是否公开一个RequestContext供Spring Spring的宏库使用,名称为“springMacroRequestContext”
spring.velocity.number-tool-attribute = #在视图的Velocity上下文中公开的NumberTool帮助对象的名称
spring.velocity.prefer-file-system-access = true #首选文件系统访问模板加载文件系统访问可以对模板更改进行热检测
spring.velocity.prefix = #前缀,用于在构建URL时查看名称
spring.velocity.properties* = #附加速度属性
spring.velocity.request-context-attribute = #所有视图的RequestContext属性的名称
spring.velocity.resource-loader-path = classpath:/ templates / #模板路径
spring.velocity.suffix = .vm #构建URL时附加到查看名称的后缀
spring.velocity.toolbox-config-location = #Velocity Toolbox配置位置例如`/ WEB-INF / toolbox.xml'
spring.velocity.view-names = #可以解决的视图名称的白名单


 #----------------------------------------
 #安全属性
 #----------------------------------------
 #SECURITY(SecurityProperties)
security.basic.authorize-mode = role #应用安全授权模式
security.basic.enabled = true #启用基本身份验证
security.basic.path = / ** #安全路径的逗号分隔列表
security.basic.realm = Spring #HTTP基本的领域名称
security.enable-csrf = false #启用跨站点请求伪造支持
security.filter-order = 0 #安全过滤器连锁订单
security.headers.cache = true #启用缓存控制HTTP头
security.headers.content-type = true# 启用“X-Content-Type-Options”头
security.headers.frame = true #启用“X-Frame-Options”标题
security.headers.hsts = # HTTP严格传输安全(HSTS)模式(无,域,全部)
security.headers.xss = true #启用跨站点脚本(XSS)保护
security.ignored = #从默认安全路径中排除的路径的逗号分隔列表
security.require-ssl = false #为所有请求启用安全通道
security.sessions = stateless #会话创建策略(永远不会,if_required,无状态)
security.user.name = user #默认用户名
security.user.password = #默认用户名的密码默认情况下,启动时会记录随机密码
security.user.role = USER #为默认用户名授予角色


 #SECURITY OAUTH2 CLIENT(OAuth2ClientProperties
security.oauth2.client.client-id = #OAuth2客户端ID
security.oauth2.client.client-secret = #OAuth2客户机密码默认生成随机密码


 #SECURITY OAUTH2 RESOURCES(ResourceServerProperties
security.oauth2.resource.id = #资源的标识符
security.oauth2.resource.jwt.key-uri = #JWT令牌的URI如果值不可用并且密钥是公共的,可以设置
security.oauth2.resource.jwt.key-value = #JWT令牌的验证密钥可以是对称秘密或PEM编码的RSA公钥
security.oauth2.resource.prefer-token-info = true #使用令牌信息,可以设置为false以使用用户信息
security.oauth2.resource.service-id = resource #
security.oauth2.resource.token-info-uri = #令牌解码端点的URI
security.oauth2.resource.token-type = #使用userInfoUri时发送的令牌类型
security.oauth2.resource.user-info-uri = #用户端点的URI


 #SECURITY OAUTH2 SSO(OAuth2SsoProperties
security.oauth2.sso.filter-order = #如果不提供显式的WebSecurityConfigurerAdapter,则应用过滤器顺序
security.oauth2.sso.login-path = / login #登录页面的路径,即触发重定向到OAuth2授权服务器的路径




# ----------------------------------------
# DATA PROPERTIES 数据性能
# ----------------------------------------


# FLYWAY (FlywayProperties)
flyway.baseline-description = #
flyway.baseline-version = 1 #版本开始迁移
flyway.baseline-on-migrate = #
flyway.check-location = false #检查迁移脚本位置是否存在
flyway.clean-on-validation-error = #
flyway.enabled = true #启用飞行路线
flyway.encoding = #
flyway.ignore-failed-future-migration = #
flyway.init-sqls = #执行SQL语句,以便在获取连接后立即初始化连接
flyway.locations = classpath:db / migration #迁移脚本的位置
flyway.out-of-order = #如果您希望Flyway创建自己的DataSource,则需要使用#path密码
flyway.placeholder-prefix = #
flyway.placeholder-replacement = #
flyway.placeholder-suffix = #
flyway.placeholders* = #
flyway.schemas = #schemas来更新
flyway.sql-migration-prefix = V #
flyway.sql-migration-separator = #
flyway.sql-migration-suffix = .sql #
flyway.table = #
flyway.url = #要迁移的数据库的JDBC url如果未设置,则使用主配置的数据源
flyway.user = #登录要迁移的数据库的用户
flyway.validate-on-migrate = #


# LIQUIBASE (LiquibaseProperties)
liquibase.change-log = classpath:/db/changelog/db.changelog-master.yaml #更改日志配置路径
liquibase.check-change-log-location = true #检查更改日志位置是否存在
liquibase.contexts = #使用逗号分隔的运行时上下文列表
liquibase.default-schema = #默认数据库模式
liquibase.drop-first = false #首先删除数据库模式
liquibase.enabled = true #启用liquidibase支持
liquibase.labels = #使用逗号分隔的运行时标签列表
liquibase.parameters* = #更改日志参数
liquibase.password = #登录要迁移的数据库的密码
liquibase.url = #要迁移的数据库的JDBC url 如果未设置,则使用主配置的数据源
liquibase.user = #登录要迁移的数据库的用户



# DAO (PersistenceExceptionTranslationAutoConfiguration)
spring.dao.exceptiontranslation.enabled= true # 启用持久异常翻译后处理器


# CASSANDRA (CassandraProperties)
spring.data.cassandra.cluster-name = #Cassandra群集的名称
spring.data.cassandra.compression = #由Cassandra二进制协议支持的压缩
spring.data.cassandra.connect-timeout-millis = #套接字选项:连接超时
spring.data.cassandra.consistency-level = #查询一致性级别
spring.data.cassandra.contact-points = localhost #集群节点地址的逗号分隔列表
spring.data.cassandra.fetch-size = #查询默认的抓取大小
spring.data.cassandra.keyspace-name = #要使用的密钥空间名称
spring.data.cassandra.load-balancing-policy = #负载均衡策略的类名
spring.data.cassandra.port = #Cassandra服务器端口
spring.data.cassandra.password = #登录服务器的密码
spring.data.cassandra.read-timeout-millis = #套接字选项:读取超时
spring.data.cassandra.reconnection-policy = #重新连接策略类
spring.data.cassandra.retry-policy = #重试策略的类名
spring.data.cassandra.serial-consistency-level = #查询串行一致性级别
spring.data.cassandra.ssl = false #启用SSL支持
spring.data.cassandra.username = #登录用户的服务器


# ELASTICSEARCH (ElasticsearchProperties)
spring.data.elasticsearch.cluster-name = elasticsearch #弹性搜索集群名称
spring.data.elasticsearch.cluster-nodes = #集群节点地址的逗号分隔列表 如果未指定,则启动客户端节点
spring.data.elasticsearch.properties* = #用于配置客户端的其他属性
spring.data.elasticsearch.repositories.enabled = true #启用Elasticsearch存储库


# MONGODB (MongoProperties)
spring.data.mongodb.authentication-database = #验证数据库名称
spring.data.mongodb.database = test #数据库名称
spring.data.mongodb.field-naming-strategy = #要使用的FieldNamingStrategy的完全限定名称
spring.data.mongodb.grid-fs-database = #GridFS数据库名称
spring.data.mongodb.host = localhost #Mongo服务器主机
spring.data.mongodb.password = #登录mongo服务器的密码
spring.data.mongodb.port = 27017 #Mongo服务器端口
spring.data.mongodb.repositories.enabled = true #启用Mongo存储库
spring.data.mongodb.uri = mongodb:// localhost / test #Mongo数据库URI 设置时,主机和端口将被忽略
spring.data.mongodb.username = #登录mongo服务器的用户


# DATA REST (RepositoryRestProperties)
spring.data.rest.base-path = #由Spring Data REST用于公开存储库资源的基本路径
spring.data.rest.default-page-size = #页面的默认大小
spring.data.rest.enable-enum-translation = #通过Spring Data REST默认资源包启用枚举值转换
spring.data.rest.limit-param-name = #指示一次返回多少结果的URL查询字符串参数的名称
spring.data.rest.max-page-size = #最大页面大小
spring.data.rest.page-param-name = #指示要返回的页面的URL查询字符串参数的名称
spring.data.rest.return-body-on-create = #创建一个实体后返回响应体
spring.data.rest.return-body-on-update = #更新实体后返回响应体
spring.data.rest.sort-param-name = #指示排序结果的方向的URL查询字符串参数的名称


# SOLR (SolrProperties)
spring.data.solr.host = http://127.0.0.1:8983/solr #Solr主机 如果设置了“zk-host”,则被忽略
spring.data.solr.repositories.enabled = true #启用Solr存储库
spring.data.solr.zk-host = #ZooKeeper主机地址,格式为HOST:PORT


# 数据源 配置 (DataSourceAutoConfiguration & DataSourceProperties)
spring.datasource.continue-on-error = false #初始化数据库时发生错误时不要停止
spring.datasource.data = #Data(DML)脚本资源引用
spring.datasource.driver-class-name = #JDBC驱动程序的完全限定名称默认情况下,根据URL自动检测
spring.datasource.initialize = true #使用'data.sql'填充数据库
spring.datasource.jmx-enabled = false #启用JMX支持(如果由底层池提供)
spring.datasource.jndi-name = #数据源的JNDI位置设置时,类,网址,用户名和密码将被忽略
spring.datasource.max-active = #例如100
spring.datasource.max-idle = #例如8
spring.datasource.max等待=
spring.datasource.min-evictable空闲时间-米利斯=
spring.datasource.min-idle = 8
spring.datasource.name = testdb #数据源的名称
spring.datasource.password = #登录数据库的密码
spring.datasource.platform = all #在资源模式(schema - $ {platform} .sql)中使用的平台
spring.datasource.schema = #Schema(DDL)脚本资源引用
spring.datasource.separator =;  #语句分隔符在SQL初始化脚本中
spring.datasource.sql-script-encoding = #SQL脚本编码
spring.datasource.test-on-borrow = #例如`false`
spring.datasource.test-on-return = #例如`false`
spring.datasource.test-while-idle = #
spring.datasource.time-between-eviction-runs-millis = 1
spring.datasource.type = #要使用的连接池实现的完全限定名称默认情况下,它是从类路径自动检测的
spring.datasource.url = #数据库的JDBC url
spring.datasource.username=
spring.datasource.validation-query=


# H2 Web Console (H2ConsoleProperties)
spring.h2.console.enabled = false #启用控制台
spring.h2.console.path = / h2-console #控制台可用的路径


# JOOQ (JooqAutoConfiguration)
spring.jooq.sql-dialect=  # 与配置的数据源通信时使用的SQLDialect JOOQ 例如`POSTGRES`


# JPA (JpaBaseConfiguration, HibernateJpaAutoConfiguration)
spring.data.jpa.repositories.enabled = true #启用JPA存储库
spring.jpa.database = #目标数据库进行操作,默认情况下自动检测可以使用“databasePlatform”属性设置
spring.jpa.database-platform = #要运行的目标数据库的名称,默认情况下自动检测可以使用“数据库”枚举来设置
spring.jpa.generate-ddl = false #启动时初始化模式
spring.jpa.hibernate.ddl-auto = #DDL模式这实际上是“hibernate.hbm2ddl.auto”属性的快捷方式使用嵌入式数据库时默认为“创建删除”,否则为“否”
spring.jpa.hibernate.naming-strategy = #命名策略完全限定名
spring.jpa.open-in-view = true #注册OpenEntityManagerInViewInterceptor将JPA EntityManager绑定到线程以进行请求的整个处理
spring.jpa.properties* = #在JPA提供程序上设置的其他本机属性
spring.jpa.show-sql = false #启用SQL语句的日志记录


# JTA (JtaAutoConfiguration)
spring.jta* = #技术特定配置
spring.jta.log-dir = #Transaction logs目录


# ATOMIKOS
spring.jta.atomikos.connectionfactory.borrow-connection-timeout = 30 #从池中借用连接的超时(以秒为单位)
spring.jta.atomikos.connectionfactory.ignore-session-transacted-flag = true #创建会话时是否忽略事务标志
spring.jta.atomikos.connectionfactory.local-transaction-mode = false #是否需要本地事务
spring.jta.atomikos.connectionfactory.maintenance-interval = 60 #池的维护线程运行之间的时间(以秒为单位)
spring.jta.atomikos.connectionfactory.max-idle-time = 60 #从池中清除连接之后的时间(以秒为单位)
spring.jta.atomikos.connectionfactory.max-lifetime = 0 #在被破坏之前可以将连接合并的时间(以秒为单位) 0表示无限制
spring.jta.atomikos.connectionfactory.max-pool-size = 1 #池的最大大小
spring.jta.atomikos.connectionfactory.min-pool-size = 1 #池的最小大小
spring.jta.atomikos.connectionfactory.reap-timeout = 0 #借用连接的收获超时(以秒为单位) 0表示无限制
spring.jta.atomikos.connectionfactory.unique-resource-name = jmsConnectionFactory #用于在恢复期间标识资源的唯一名称
spring.jta.atomikos.datasource.borrow-connection-timeout = 30 #从池中借出连接的超时(秒)
spring.jta.atomikos.datasource.default-isolation-level = #池提供的连接的默认隔离级别
spring.jta.atomikos.datasource.login-timeout = #用于建立数据库连接的超时(以秒为单位)
spring.jta.atomikos.datasource.maintenance-interval = 60 #池的维护线程运行之间的时间(以秒为单位)
spring.jta.atomikos.datasource.max-idle-time = 60 #从池中清除连接之后的时间(以秒为单位)
spring.jta.atomikos.datasource.max-lifetime = 0 #在被破坏之前可以将连接合并的时间(以秒为单位) 0表示无限制
spring.jta.atomikos.datasource.max-pool-size = 1 #池的最大大小
spring.jta.atomikos.datasource.min-pool-size = 1 #池的最小大小
spring.jta.atomikos.datasource.reap-timeout = 0 #借用连接的收获超时(以秒为单位) 0表示无限制
spring.jta.atomikos.datasource.test-query = #用于在返回连接之前验证连接的SQL查询或语句
spring.jta.atomikos.datasource.unique-resource-name = dataSource #用于在恢复期间识别资源的唯一名称


# BITRONIX
spring.jta.bitronix.connectionfactory.acquire-increment = 1 #生成池时要创建的连接数
spring.jta.bitronix.connectionfactory.acquisition-interval = 1 #在获取无效连接后再次尝试获取连接之前等待的时间(以秒为单位)
spring.jta.bitronix.connectionfactory.acquisition-timeout = 30 #从池中获取连接的超时(以秒为单位)
spring.jta.bitronix.connectionfactory.allow-local-transactions = true #事务管理器是否允许混合XA和非XA事务
spring.jta.bitronix.connectionfactory.apply-transaction-timeout = false #当XAResource被登记时,是否应该设置事务超时
spring.jta.bitronix.connectionfactory.automatic-enlisting-enabled = true #资源是否应该被自动登记和删除
spring.jta.bitronix.connectionfactory.cache-producer-consumer = true #是否生产和消费者应该被缓存
spring.jta.bitronix.connectionfactory.defer-connection-release = true #提供程序是否可以在同一连接上运行许多事务,并支持事务交织
spring.jta.bitronix.connectionfactory.ignore-recovery-failures = false #是否应忽略恢复失败
spring.jta.bitronix.connectionfactory.max-idle-time = 60 #从池中清除连接之后的时间(以秒为单位)
spring.jta.bitronix.connectionfactory.max-pool-size = 10 #池的最大大小 0表示无限制
spring.jta.bitronix.connectionfactory.min-pool-size = 0 #池的最小大小
spring.jta.bitronix.connectionfactory.password = #用于连接到JMS提供程序的密码
spring.jta.bitronix.connectionfactory.share-transaction-connections = false #ACCESSIBLE状态中的连接是否可以在事务的上下文中共享
spring.jta.bitronix.connectionfactory.test-connections = true #从池中获取连接是否应该进行测试
spring.jta.bitronix.connectionfactory.two-pc-ordering-position = 1 #在两阶段提交期间该资源应该采取的位置(始终为Integer.MIN_VALUE,始终为Integer.MAX_VALUE)
spring.jta.bitronix.connectionfactory.unique-name = jmsConnectionFactory #用于在恢复期间标识资源的唯一名称
spring.jta.bitronix.connectionfactory.use-tm-join = true启动XAResource时是否应使用TMJOIN
spring.jta.bitronix.connectionfactory.user = #用于连接到JMS提供者的用户
spring.jta.bitronix.datasource.acquire-increment = 1 #生成池时要创建的连接数
spring.jta.bitronix.datasource.acquisition-interval = 1 #在获取无效连接后再尝试获取连接之前等待的时间(以秒为单位)
spring.jta.bitronix.datasource.acquisition-timeout = 30 #从池中获取连接的超时(以秒为单位)
spring.jta.bitronix.datasource.allow-local-transactions = true #事务管理器是否允许混合XA和非XA事务
spring.jta.bitronix.datasource.apply-transaction-timeout = false #当XAResource被登记时,是否应该设置事务超时
spring.jta.bitronix.datasource.automatic-enlisting-enabled = true #资源是否应该被登记和自动删除
spring.jta.bitronix.datasource.cursor-holdability = #连接的默认游标保持性
spring.jta.bitronix.datasource.defer-connection-release = true #数据库是否可以在同一连接上运行许多事务,并支持事务交织
spring.jta.bitronix.datasource.enable-jdbc4-connection-test = #从池中获取连接时是否调用Connection.isValid()
spring.jta.bitronix.datasource.ignore-recovery-failures = false #是否应忽略恢复失败
spring.jta.bitronix.datasource.isolation-level = #连接的默认隔离级别
spring.jta.bitronix.datasource.local-auto-commit = #本地事务的默认自动提交模式
spring.jta.bitronix.datasource.login-timeout = #用于建立数据库连接的超时(以秒为单位)
spring.jta.bitronix.datasource.max-idle-time = 60 #从池中清除连接之后的时间(以秒为单位)
spring.jta.bitronix.datasource.max-pool-size = 10 #池的最大大小 0表示无限制
spring.jta.bitronix.datasource.min-pool-size = 0 #池的最小大小
spring.jta.bitronix.datasource.prepared-statement-cache-size = 0 #准备好的语句高速缓存的目标大小 0禁用缓存
spring.jta.bitronix.datasource.share-transaction-connections = false #ACCESSIBLE状态下的连接是否可以在事务的上下文中共享
spring.jta.bitronix.datasource.test-query = #用于在返回连接之前验证连接的SQL查询或语句
spring.jta.bitronix.datasource.two-pc-ordering-position = 1 #在两阶段提交期间该资源应该采取的位置(始终为Integer.MIN_VALUE,始终为Integer.MAX_VALUE)
spring.jta.bitronix.datasource.unique-name = dataSource #用于在恢复期间标识资源的唯一名称
spring.jta.bitronix.datasource.use-tm-join = true启动XAResource时是否应使用TMJOIN



# EMBEDDED MONGODB (EmbeddedMongoProperties)
spring.mongodb.embedded.features = SYNC_DELAY #启用功能的逗号分隔列表
spring.mongodb.embedded.version = 2.6.10 #Mongo使用版本


# ----------------------------------------
# 整合属性
# ----------------------------------------

 #ACTIVEMQ(ActiveMQProperties)
spring.activemq.broker-url = #ActiveMQ代理的URL 默认自动生成 例如`tcp:// localhost:61616`
spring.activemq.in-memory = true #指定默认代理URL是否应在内存中 如果指定了一个显式代理,则被忽略
spring.activemq.password = #登录密码的代理
spring.activemq.pooled = false #指定是否创建PooledConnectionFactory而不是常规的ConnectionFactory
spring.activemq.user = #代理登录用户


# ARTEMIS (ArtemisProperties)
spring.artemis.embedded.cluster-password = #群集密码 默认情况下随机生成
spring.artemis.embedded.data-directory = #日志文件目录 如果持久性被关闭,则不需要
spring.artemis.embedded.enabled = true #如果Artemis服务器API可用,启用嵌入式模式
spring.artemis.embedded.persistent = false #启用持久存储
spring.artemis.embedded.queues = #启动时要创建的队列的逗号分隔列表
spring.artemis.embedded.server-id = #服务器ID 默认情况下,使用自动递增的计数器
spring.artemis.embedded.topics = #启动时要创建的主题的逗号分隔列表
spring.artemis.host = localhost #Artemis代理主机
spring.artemis.mode = #Artemis部署模式,默认情况下自动检测 可以显式设置为“native”或“embedded”
spring.artemis.port = 61616 #Artemis 中间件端口


# SPRING BATCH(Batch 配置)
spring.batch.initializer.enabled = true #如果需要,在启动时创建所需的批处理表
spring.batch.job.enabled = true #在启动时执行上下文中的所有Spring批处理作业
spring.batch.job.names = #在启动时执行的作业名称的逗号分隔列表(例如`job1,job2`) 默认情况下,执行在上下文中找到的所有作业
spring.batch.schema = classpath:org / springframework / batch / core / schema - @@ platform @@sql #用于初始化数据库模式的SQL文件的路径
spring.batch.table-prefix = #所有批次元数据表的表前缀


# HORNETQ (HornetQ 配置)
spring.hornetq.embedded.cluster-password = #集群密码 默认情况下随机生成
spring.hornetq.embedded.data-directory = #日志文件目录 如果持久性被关闭,则不需要
spring.hornetq.embedded.enabled = true #如果HornetQ服务器API可用,启用嵌入式模式
spring.hornetq.embedded.persistent = false #启用持久存储
spring.hornetq.embedded.queues = #启动时要创建的队列的逗号分隔列表
spring.hornetq.embedded.server-id = #服务器ID 默认情况下,使用自动递增的计数器
spring.hornetq.embedded.topics = #在启动时创建的主题的逗号分隔列表
spring.hornetq.host = localhost #HornetQ代理主机
spring.hornetq.mode = #HornetQ部署模式,默认情况下自动检测 可以显式设置为“native”或“embedded”
spring.hornetq.port = 5445 #HornetQ代理端口


# JMS (Jms 配置)
# 连接工厂JNDI名称 设置时,优先于其他连接工厂自动配置
spring.jms.jndi-name=
# 容器的确认模式 默认情况下,监听器被自动确认处理
spring.jms.listener.acknowledge-mode=
# 启动时自动启动容器
spring.jms.listener.auto-startup= true
# 最小并发消费者数
spring.jms.listener.concurrency=
# 最大并发消费者数
spring.jms.listener.max-concurrency=
# 指定默认的目的地类型是否为主题
spring.jms.pub-sub-domain= false


# RABBIT (Rabbit 配置)
# 客户端应连接到的逗号分隔的地址列表
spring.rabbitmq.addresses =
spring.rabbitmq.dynamic =  true # 创建一个AmqpAdmin bean
spring.rabbitmq.host =  localhost# RabbitMQ主机
spring.rabbitmq.listener.acknowledge-mode = # 容器的确认模式
spring.rabbitmq.listener.auto-startup =  true# 启动时自动启动容器
spring.rabbitmq.listener.concurrency = # 最少消费者数
spring.rabbitmq.listener.max-concurrency = # 最大消费者数
spring.rabbitmq.listener.prefetch = # 在单个请求中要处理的消息数它应该大于或等于事务大小(如果使用)
spring.rabbitmq.listener.transaction-size = # 在事务中要处理的消息数为了获得最佳结果,它应该小于或等于预取计数
spring.rabbitmq.password = # 登录以对代理进行身份验证
spring.rabbitmq.port =  5672# RabbitMQ端口
spring.rabbitmq.requested-heartbeat = # 请求的心跳超时,以秒为单位;零为无
spring.rabbitmq.ssl.enabled =  false# 启用SSL支持
spring.rabbitmq.ssl.key-store =  # 保存SSL证书的密钥存储区的路径
spring.rabbitmq.ssl.key-store-password = # 用于访问密钥库的密码
spring.rabbitmq.ssl.trust-store = # 保存SSL证书的Trust存储
spring.rabbitmq.ssl.trust-store-password = # 用于访问信任存储的密码
spring.rabbitmq.username = # 登录用户对代理进行身份验证
spring.rabbitmq.virtual-host = # 连接到代理时使用的虚拟主机


# 端点配置(EndpointCorsProperties)
# 设置是否支持凭据 未设置时,不支持凭据
endpoints.cors.allow-credentials=
# 在请求中允许的头文件逗号分隔列表 '*'允许所有标题
endpoints.cors.allowed-headers=
# 逗号分隔的允许的方法列表 '*'允许所有方法
endpoints.cors.allowed-methods= GET
# 逗号分隔的起始列表允许 '*'允许所有来源 未设置时,禁用CORS支持
endpoints.cors.allowed-origins=
# 包含在响应中的标题的逗号分隔列表
endpoints.cors.exposed-headers=
# 客户端可以缓存飞行前请求的响应时间(秒)
endpoints.cors.max-age= 1800


# JMX ENDPOINT (EndpointMBeanExportProperties) (端点MBean导出属性)
# JMX域名 如果设置为'spring.jmx.default-domain'的值初始化
endpoints.jmx.domain=
# 启用所有端点的JMX导出
endpoints.jmx.enabled= true
# 附加静态属性以附加到表示端点的MBean的所有对象名称
endpoints.jmx.static-names=
# 确保在发生冲突时修改ObjectNames
endpoints.jmx.unique-names= false


# JOLOKIA  JOLOKIA 配置
# 见Jolokia手册
jolokia.config.*=


# 管理HTTP服务器(管理服务器属性)
# 在每个响应中添加“X-Application-Context”HTTP头
management.add-application-context-header= true
# 管理端点应绑定到的网络地址
management.address=
# 管理端点上下文路径 例如`/ actuator`
management.context-path=
# 管理端点HTTP端口 默认使用与应用程序相同的端口
management.port=
# 启用安全性
management.security.enabled= true
# 访问管理端点所需的角色
management.security.role= ADMIN
# 会话创建策略使用(always,never,if_required,stateless)(总是,永远,if_required,无状态)
management.security.sessions= stateless


# HEALTH INDICATORS (previously health.*)
# 启用数据库运行状况检查
management.health.db.enabled= true
# 启用默认的健康指标
management.health.defaults.enabled= true
# 启用磁盘空间运行状况检查
management.health.diskspace.enabled= true
# 用于计算可用磁盘空间的路径
management.health.diskspace.path=
# 应该可用的最小磁盘空间(以字节为单位)
management.health.diskspace.threshold= 0
# 启用弹性搜索健康检查
management.health.elasticsearch.enabled= true
# 逗号分隔的索引名称
management.health.elasticsearch.indices=
# 等待群集响应的时间(以毫秒为单位)
management.health.elasticsearch.response-timeout= 100
# 启用JMS健康检查
management.health.jms.enabled= true
# 启用邮件运行状况检查
management.health.mail.enabled= true
# 启用MongoDB健康检查
management.health.mongo.enabled= true
# 启用RabbitMQ运行状况检查
management.health.rabbit.enabled= true
# 启用Redis健康检查
management.health.redis.enabled= true
# 启用Solr运行状况检查
management.health.solr.enabled= true
# 按照严重性的顺序,以逗号分隔的健康状态列表
management.health.status.order= DOWN, OUT_OF_SERVICE, UNKNOWN, UP


# TRACING ((TraceProperties) 跟踪性能
# 跟踪中包含的项目
management.trace.include= request-headers,response-headers,errors


# 远程 shell配置
# 验证类型 根据环境自动检测
shell.auth= simple
# JAAS域
shell.auth.jaas.domain= my-domain
# 验证密钥的路径 这应该指向一个有效的“.pem”文件
shell.auth.key.path=
# 登录用户
shell.auth.simple.user.name= user
# 登录用户的密码
shell.auth.simple.user.password=
# 登录到CRaSH控制台的所需的角色,以逗号分隔列表
shell.auth.spring.roles= ADMIN
# 用于查找命令的模式
shell.command-path-patterns= classpath*:/commands/**,classpath*:/crash/commands/**
# 扫描更改并在必要时更新命令(以秒为单位)
shell.command-refresh-interval= -1
# 用于查找配置的模式
shell.config-path-patterns= classpath*:/crash/*
# 逗号分隔的要禁用的命令列表
shell.disabled-commands= jpa*,jdbc*,jndi*
# 禁用逗号分隔的插件列表 默认情况下,根据环境禁用某些插件
shell.disabled-plugins=
# 用户被提示再次登录后的毫秒数
shell.ssh.auth-timeout =
# 启用CRaSH SSH支持
shell.ssh.enabled= true
# 未使用的连接关闭之后的毫秒数
shell.ssh.idle-timeout =
# SSH服务器密钥路径
shell.ssh.key-path=
# SSH端口
shell.ssh.port= 2000
# 启用CRaSH telnet支持 如果TelnetPlugin可用,默认情况下启用
shell.telnet.enabled= false
# Telnet端口
shell.telnet.port= 5000


# GIT 信息配置
# 生成的git信息属性文件的资源引用
spring.git.properties=


# 标准出口
# 模式,告诉聚合器如何从源存储库中的键
spring.metrics.export.aggregate.key-pattern=
# 全局存储库的前缀如果处于活动状态
spring.metrics.export.aggregate.prefix=
# 导出刻度之间以毫秒为单位的延迟 按照这种延迟,指标将按计划导出到外部来源
spring.metrics.export.delay-millis= 5000
# 标志以启用度量标准导出(假设MetricWriter可用)
spring.metrics.export.enabled= true
# 要排除的度量名称列表 应用后包括
spring.metrics.export.excludes=
# 要包含的度量名称的模式列表
spring.metrics.export.includes=
# redis存储库导出的密钥(如果活动)
spring.metrics.export.redis.key= keys.spring.metrics
# redis存储库的前缀 如果处于活动状态
spring.metrics.export.redis.prefix= spring.metrics
# 标志基于不导出不变的度量值来关闭任何可用的优化
spring.metrics.export.send-latest=
# 主机的statsd服务器接收导出的指标
spring.metrics.export.statsd.host=
# 接收导出指标的statsd服务器端口
spring.metrics.export.statsd.port= 8125
# statsd导出指标的前缀
spring.metrics.export.statsd.prefix=
# 每个MetricWriter bean名称具有特定的触发器属性
spring.metrics.export.triggers.*=


# ----------------------------------------
# DEVTOOLS属性
# ----------------------------------------

# DEVTOOLS(开发工具属性)
# 启用一个livereload.com兼容的服务器
spring.devtools.livereload.enabled= true
#  # Server port.
spring.devtools.livereload.port= 35729
# 应该排除的触发完全重新启动的其他模式
spring.devtools.restart.additional-exclude=
# 观看更改的附加路径
spring.devtools.restart.additional-paths=
# 启用自动重启功能
spring.devtools.restart.enabled= true
# 应该排除的模式触发完全重新启动
spring.devtools.restart.exclude= META-INF/maven/**,META-INF/resources/**,resources/**,static/**,public/**,templates/**,**/*Test.class,**/*Tests.class,git.properties
# 轮询类路径更改之间等待的时间量(以毫秒为单位)
spring.devtools.restart.poll-interval= 1000
# 触发重新启动之前没有任何类路径更改所需的安静时间量(以毫秒为单位)
spring.devtools.restart.quiet-period= 400
# 更改后的特定文件的名称将触发重新启动检查 如果未指定任何类路径文件更改将触发重新启动
spring.devtools.restart.trigger-file=


# 远程开发工具属性
# 用于处理远程连接的上下文路径
spring.devtools.remote.context-path= /.~~spring-boot!~
# 启用远程调试支持
spring.devtools.remote.debug.enabled= true
# 本地远程调试服务器端口
spring.devtools.remote.debug.local-port= 8000
# 用于连接到远程应用程序的代理主机
spring.devtools.remote.proxy.host=
# 用于连接到远程应用程序的代理端口
spring.devtools.remote.proxy.port=
# 启用远程重启
spring.devtools.remote.restart.enabled= true
# 建立连接所需的共享密钥(需要启用远程支持)
spring.devtools.remote.secret=
# HTTP头用于传输共享密钥</ span>
spring.devtools.remote.secret-header-name= X-AUTH-TOKEN

2.王军伟老师的总结

#SPRING CONFIG(ConfigFileApplicationListener)  
spring.config.name =#配置文件名(默认 为  'application' )  
spring.config.location =#配置文件的位置  
 
# 多环境配置文件激活属性
spring.profiles.active=dev					#加载application-dev.properties配置文件内容 
application-dev.properties:					#开发环境
application-test.properties:					#测试环境
application-prod.properties:					#生产环境
 
 
#activemq
spring.activemq.broker-url						#指定ActiveMQ broker的URL,默认自动生成.
spring.activemq.in-memory						#是否是内存模式,默认为true.
spring.activemq.password						#指定broker的密码.
spring.activemq.pooled							#是否创建PooledConnectionFactory,而非ConnectionFactory,默认false
spring.activemq.user							#指定broker的用户.
 
 
#aop
spring.aop.auto									#是否支持@EnableAspectJAutoProxy,默认为: true
spring.aop.proxy-target-class					#true为使用CGLIB代理,false为JDK代理,默认为false
 
 
#application
spring.application.admin.enabled				#是否启用admin特性,默认为: false
spring.application.admin.jmx-name				#指定admin MBean的名称,默认为: org.springframework.boot:type=Admin,name=SpringApplication
 
 
#artemis(HornetQ捐献给apache后的版本)
spring.artemis.embedded.cluster-password		#指定集群的密码,默认是启动时随机生成.
spring.artemis.embedded.data-directory			#指定Journal文件的目录.如果不开始持久化则不必要指定.
spring.artemis.embedded.enabled					#是否开启内嵌模式,默认true
spring.artemis.embedded.persistent				#是否开启persistent store,默认false.
spring.artemis.embedded.queues					#指定启动时创建的队列,多个用逗号分隔,默认: []
spring.artemis.embedded.server-id				#指定Server ID. 默认是一个自增的数字,从0开始.
spring.artemis.embedded.topics					#指定启动时创建的topic,多个的话逗号分隔,默认: []
spring.artemis.host								#指定Artemis broker 的host. 默认: localhost
spring.artemis.mode								#指定Artemis 的部署模式, 默认为auto-detected(也可以为native or embedded).
spring.artemis.port								#指定Artemis broker 的端口,默认为: 61616
 
 
#autoconfig
spring.autoconfigure.exclude					#配置要排除的Auto-configuration classes.
 
 
#batch
spring.batch.initializer.enabled				#是否在必要时创建batch表,默认为true
spring.batch.job.enabled						#是否在启动时开启batch job,默认为true
spring.batch.job.names							#指定启动时要执行的job的名称,逗号分隔,默认所有job都会被执行
spring.batch.schema								#指定要初始化的sql语句路径,默认:classpath:org/springframework/batch/core/schema-@@platform@@.sql)
spring.batch.table-prefix						#指定批量处理的表的前缀.
 
 
#cookie、session配置
server.session.cookie.comment					#指定session cookie的comment
server.session.cookie.domain					#指定session cookie的domain
server.session.cookie.http-only					#是否开启HttpOnly.
server.session.cookie.max-age					#设定session cookie的最大age.
server.session.cookie.name						#设定Session cookie 的名称.
server.session.cookie.path						#设定session cookie的路径.
server.session.cookie.secure					#设定session cookie的“Secure” flag.
server.session.persistent						#重启时是否持久化session,默认false
server.session.timeout							#session的超时时间
server.session.tracking-modes					#设定Session的追踪模式(cookie, url, ssl).
 
 
#datasource 
spring.dao.exceptiontranslation.enabled			#是否开启PersistenceExceptionTranslationPostProcessor,默认为true
spring.datasource.abandon-when-percentage-full	#设定超时被废弃的连接占到多少比例时要被关闭或上报
spring.datasource.allow-pool-suspension			#使用Hikari pool时,是否允许连接池暂停,默认为: false
spring.datasource.alternate-username-allowed	#是否允许替代的用户名.
spring.datasource.auto-commit					#指定updates是否自动提交.
spring.datasource.catalog						#指定默认的catalog.
spring.datasource.commit-on-return				#设置当连接被归还时,是否要提交所有还未完成的事务
spring.datasource.connection-init-sql			#指定连接被创建,再被添加到连接池之前执行的sql.
spring.datasource.connection-init-sqls			#使用DBCP connection pool时,指定初始化时要执行的sql
spring.datasource.connection-properties.[key]	#在使用DBCP connection pool时指定要配置的属性
spring.datasource.connection-test-query			#指定校验连接合法性执行的sql语句
spring.datasource.connection-timeout			#指定连接的超时时间,毫秒单位.
spring.datasource.continue-on-error				#在初始化数据库时,遇到错误是否继续,默认false
spring.datasource.data							#指定Data (DML)脚本
spring.datasource.data-source-class-name		#指定数据源的全限定名.
spring.datasource.data-source-jndi				#指定jndi的地址
spring.datasource.data-source-properties.[key]	#使用Hikari connection pool时,指定要设置的属性
spring.datasource.db-properties					#使用Tomcat connection pool,指定要设置的属性
spring.datasource.default-auto-commit			#是否自动提交.
spring.datasource.default-catalog				#指定连接默认的catalog.
spring.datasource.default-read-only				#是否设置默认连接只读.
spring.datasource.default-transaction-isolation	#指定连接的事务的默认隔离级别.
spring.datasource.driver-class-name				#指定driver的类名,默认从jdbc url中自动探测.
spring.datasource.fair-queue					#是否采用FIFO返回连接.
spring.datasource.health-check-properties.[key]	#使用Hikari connection pool时,在心跳检查时传递的属性
spring.datasource.idle-timeout					#指定连接多久没被使用时,被设置为空闲,默认为10ms
spring.datasource.ignore-exception-on-pre-load	#当初始化连接池时,是否忽略异常.
spring.datasource.init-sql						#当连接创建时,执行的sql
spring.datasource.initial-size					#指定启动连接池时,初始建立的连接数量
spring.datasource.initialization-fail-fast		#当创建连接池时,没法创建指定最小连接数量是否抛异常
spring.datasource.initialize					#指定初始化数据源,是否用data.sql来初始化,默认: true
spring.datasource.isolate-internal-queries		#指定内部查询是否要被隔离,默认为false
spring.datasource.jdbc-interceptors				#使用Tomcat connection pool时,指定jdbc拦截器,分号分隔
spring.datasource.jdbc-url						#指定JDBC URL.
spring.datasource.jmx-enabled					#是否开启JMX,默认为: false
spring.datasource.jndi-name						#指定jndi的名称.
spring.datasource.leak-detection-threshold		#使用Hikari connection pool时,多少毫秒检测一次连接泄露.
spring.datasource.log-abandoned					#使用DBCP connection pool,是否追踪废弃statement或连接,默认为: false
spring.datasource.log-validation-errors			#当使用Tomcat connection pool是否打印校验错误.
spring.datasource.login-timeout					#指定连接数据库的超时时间.
spring.datasource.max-active					#指定连接池中最大的活跃连接数.
spring.datasource.max-age						#指定连接池中连接的最大年龄
spring.datasource.max-idle						#指定连接池最大的空闲连接数量.
spring.datasource.max-lifetime					#指定连接池中连接的最大生存时间,毫秒单位.
spring.datasource.max-open-prepared-statements	#指定最大的打开的prepared statements数量.
spring.datasource.max-wait						#指定连接池等待连接返回的最大等待时间,毫秒单位.
spring.datasource.maximum-pool-size				#指定连接池最大的连接数,包括使用中的和空闲的连接.
spring.datasource.min-evictable-idle-time-millis		#指定一个空闲连接最少空闲多久后可被清除.
spring.datasource.min-idle						#指定必须保持连接的最小值(For DBCP and Tomcat connection pools)
spring.datasource.minimum-idle					#指定连接维护的最小空闲连接数,当使用HikariCP时指定.
spring.datasource.name							#指定数据源名.
spring.datasource.num-tests-per-eviction-run	#指定运行每个idle object evictor线程时的对象数量
spring.datasource.password						#指定数据库密码.
spring.datasource.platform						#指定schema要使用的Platform(schema-${platform}.sql),默认为: all
spring.datasource.pool-name						#指定连接池名字.
spring.datasource.pool-prepared-statements		#指定是否池化statements.
spring.datasource.propagate-interrupt-state		#在等待连接时,如果线程被中断,是否传播中断状态.
spring.datasource.read-only						#当使用Hikari connection pool时,是否标记数据源只读
spring.datasource.register-mbeans				#指定Hikari connection pool是否注册JMX MBeans.
spring.datasource.remove-abandoned				#指定当连接超过废弃超时时间时,是否立刻删除该连接.
spring.datasource.remove-abandoned-timeout		#指定连接应该被废弃的时间.
spring.datasource.rollback-on-return			#在归还连接时,是否回滚等待中的事务.
spring.datasource.schema						#指定Schema (DDL)脚本.
spring.datasource.separator						#指定初始化脚本的语句分隔符,默认: ;
spring.datasource.sql-script-encoding			#指定SQL scripts编码.
spring.datasource.suspect-timeout				#指定打印废弃连接前的超时时间.
spring.datasource.test-on-borrow				#当从连接池借用连接时,是否测试该连接.
spring.datasource.test-on-connect				#创建时,是否测试连接
spring.datasource.test-on-return				#在连接归还到连接池时是否测试该连接.
spring.datasource.test-while-idle				#当连接空闲时,是否执行连接测试.
spring.datasource.time-between-eviction-runs-millis    #指定空闲连接检查、废弃连接清理、空闲连接池大小调整之间的操作时间间隔
spring.datasource.transaction-isolation			#指定事务隔离级别,使用Hikari connection pool时指定
spring.datasource.url							#指定JDBC URL.
spring.datasource.use-disposable-connection-facade		#是否对连接进行包装,防止连接关闭之后被使用.
spring.datasource.use-equals					#比较方法名时是否使用String.equals()替换==.
spring.datasource.use-lock						#是否对连接操作加锁
spring.datasource.username						#指定数据库名.
spring.datasource.validation-interval			#指定多少ms执行一次连接校验.
spring.datasource.validation-query				#指定获取连接时连接校验的sql查询语句.
spring.datasource.validation-query-timeout		#指定连接校验查询的超时时间.
spring.datasource.validation-timeout			#设定连接校验的超时时间,当使用Hikari connection pool时指定
spring.datasource.validator-class-name			#用来测试查询的validator全限定名.
spring.datasource.xa.data-source-class-name		#指定数据源的全限定名.
spring.datasource.xa.properties					#指定传递给XA data source的属性
#data  springdata
spring.data.elasticsearch.cluster-name			#指定es集群名称,默认: elasticsearch
spring.data.elasticsearch.cluster-nodes			#指定es的集群,逗号分隔,不指定的话,则启动client node.
spring.data.elasticsearch.properties			#指定要配置的es属性.
spring.data.elasticsearch.repositories.enabled	#是否开启es存储,默认为: true
spring.data.jpa.repositories.enabled			#是否开启JPA支持,默认为: true
spring.data.mongodb.authentication-database		#指定鉴权的数据库名
spring.data.mongodb.database					#指定mongodb数据库名
spring.data.mongodb.field-naming-strategy		#指定要使用的FieldNamingStrategy.
spring.data.mongodb.grid-fs-database			#指定GridFS database的名称.
spring.data.mongodb.host						#指定Mongo server host.
spring.data.mongodb.password					#指定Mongo server的密码.
spring.data.mongodb.port						#指定Mongo server port.
spring.data.mongodb.repositories.enabled		#是否开启mongodb存储,默认为true
spring.data.mongodb.uri							#指定Mongo database URI.默认:mongodb://localhost/test
spring.data.mongodb.username					#指定登陆mongodb的用户名.
spring.data.rest.base-path						#指定暴露资源的基准路径.
spring.data.rest.default-page-size				#指定每页的大小,默认为: 20
spring.data.rest.limit-param-name				#指定limit的参数名,默认为: size
spring.data.rest.max-page-size					#指定最大的页数,默认为1000
spring.data.rest.page-param-name				#指定分页的参数名,默认为: page
spring.data.rest.return-body-on-create			#当创建完实体之后,是否返回body,默认为false
spring.data.rest.return-body-on-update			#在更新完实体后,是否返回body,默认为false
spring.data.rest.sort-param-name				#指定排序使用的key,默认为: sort
spring.data.solr.host							#指定Solr host,如果有指定了zk的host的话,则忽略。默认为: http://127.0.0.1:8983/solr
spring.data.solr.repositories.enabled			#是否开启Solr repositories,默认为: true
spring.data.solr.zk-host						#指定zk的地址,格式为HOST:PORT.
#----------------------------------------  
#DEVTOOLS属性  
#----------------------------------------  
  
#DEVTOOLS(DevToolsProperties)  
spring.devtools.livereload.enabled = true		#启用livereload.com兼容的server。  
spring.devtools.livereload.port = 35729			#服务器端口。  
spring.devtools.restart.additional-exclude =		#应该从触发完全重新启动时排除的其他模式。  
spring.devtools.restart.additional-paths =		#额外的路径来观察变化。  
spring.devtools.restart.enabled = true			#启用自动重启。  
spring.devtools.restart.exclude = META-INF /行家/ **,META-INF /资源/ **,资源/ **,静态/ **,公共/ **,模板/ **,** / * Test.class,** / * Tests.class,git.properties#应该排除触发完全重启的模式。  
spring.devtools.restart.poll-interval = 1000	#polling 路径更改之间等待的时间(以毫秒为单位)。  
spring.devtools.restart.quiet-period = 400		#触发重新启动之前,没有任何类路径变化所需的静默时间(以毫秒为单位)。  
spring.devtools.restart.trigger-file =			#特定文件的名称,在更改时会触发重新启动检查。如果未指定任何类路径文件更改将触发重新启动。  
  
  
#DEVTOOLS   REMOTE DEVTOOLS(RemoteDevToolsProperties)  
spring.devtools.remote.context-path =  			#用于处理远程连接的上下文路径。  
spring.devtools.remote.debug.enabled = true		#启用远程调试支持。  
spring.devtools.remote.debug.local-port = 8000	#本地远程调试服务器端口。  
spring.devtools.remote.proxy.host =				#用于连接远程应用程序的代理主机。  
spring.devtools.remote.proxy.port =				#用于连接远程应用程序的代理端口。  
spring.devtools.remote.restart.enabled = true	#启用远程重启。  
spring.devtools.remote.secret =					#建立连接所需的共享密钥(需要启用远程支持)。  
spring.devtools.remote.secret-header-name = X-AUTH-TOKEN  		#用于传输共享密钥的HTTP头。  
 
 
#----------------------------------------  
#执行器属性  
#----------------------------------------  
  
#ENDPOINTS(AbstractEndpoint子类)  
endpoints.enabled = true						#启用端点。  
endpoints.sensitive =							#默认的端点敏感设置。  
endpoints.actuator.enabled = true				#启用端点。  
endpoints.actuator.path =						#端点URL路径。  
endpoints.actuator.sensitive = false			#在端点上启用安全性。  
endpoints.autoconfig.enabled =					#启用端点。  
endpoints.autoconfig.id =						#端点标识符。  
endpoints.autoconfig.sensitive =				#标记端点是否暴露敏感信息。  
endpoints.beans.enabled =						#启用端点。  
endpoints.beans.id =							#端点标识符。  
endpoints.beans.sensitive =						#标记端点是否暴露敏感信息。  
endpoints.configprops.enabled =					#启用端点。  
endpoints.configprops.id =						#端点标识符。  
endpoints.configprops.keys-to-sanitize			#应该清理的密钥。键可以是属性以或正则表达式结束的简单字符串。  
endpoints.configprops.sensitive =				#标记端点是否公开敏感信息。  
endpoints.docs.curies.enabled = false			#启用居里代。  
endpoints.docs.enabled = true					#启用执行器文档终结点。  
endpoints.docs.path = / docs					#  
endpoints.docs.sensitive = false				#  
 
  
#终端CORS配置(EndpointCorsProperties)  
endpoints.cors.allow-credentials =				#设置是否支持凭据。未设置时,不支持凭证。  
endpoints.cors.allowed-headers =				#在请求中允许使用逗号分隔的标题列表。'*'允许所有标题。  
endpoints.cors.allowed-methods = GET			#逗号分隔的允许的方法列表。'*'允许所有的方法。  
endpoints.cors.allowed-origins =				#逗号分隔的起源列表允许。'*'允许所有的来源。未设置时,CORS支持被禁用。  
endpoints.cors.exposed-headers =				#包含在响应中的逗号分隔的标题列表。  
endpoints.cors.max-age = 1800					#以秒为单位,客户端可以缓存飞行前请求的响应。  
  
#JMX ENDPOINT(EndpointMBeanExportProperties)  
endpoints.jmx.domain =							#JMX域名。如果设置,则用“spring.jmx.default-domain”的值初始化。  
endpoints.jmx.enabled = true					#启用所有端点的JMX导出。  
endpoints.jmx.static-names =					#附加到所有表示端点的MBean的ObjectName的静态属性。  
endpoints.jmx.unique-names = false				#确保ObjectNames在发生冲突时被修改。  
 
 
#flyway
flyway.baseline-description 					#对执行迁移时基准版本的描述.
flyway.baseline-on-migrate						#当迁移时发现目标schema非空,而且带有没有元数据的表时,是否自动执行基准迁移,默认false.
flyway.baseline-version							#开始执行基准迁移时对现有的schema的版本打标签,默认值为1.
flyway.check-location							#检查迁移脚本的位置是否存在,默认false.
flyway.clean-on-validation-error				#当发现校验错误时是否自动调用clean,默认false.
flyway.enabled									#是否开启flywary,默认true.
flyway.encoding									#设置迁移时的编码,默认UTF-8.
flyway.ignore-failed-future-migration			#当读取元数据表时是否忽略错误的迁移,默认false.
flyway.init-sqls								#当初始化好连接时要执行的SQL.
flyway.locations								#迁移脚本的位置,默认db/migration.
flyway.out-of-order								#是否允许无序的迁移,默认false.
flyway.password									#目标数据库的密码.
flyway.placeholder-prefix						#设置每个placeholder的前缀,默认${.
flyway.placeholder-replacement					#placeholders是否要被替换,默认true.
flyway.placeholder-suffix						#设置每个placeholder的后缀,默认}.
flyway.placeholders.[placeholder name]			#设置placeholder的value
flyway.schemas									#设定需要flywary迁移的schema,大小写敏感,默认为连接默认的schema.
flyway.sql-migration-prefix						#迁移文件的前缀,默认为V.
flyway.sql-migration-separator					#迁移脚本的文件名分隔符,默认__
flyway.sql-migration-suffix						#迁移脚本的后缀,默认为.sql
flyway.table									#flyway使用的元数据表名,默认为schema_version
flyway.target									#迁移时使用的目标版本,默认为latest version
flyway.url										#迁移时使用的JDBC URL,如果没有指定的话,将使用配置的主数据源
flyway.user										#迁移数据库的用户名
flyway.validate-on-migrate						#迁移时是否校验,默认为true.
 
#FREEMARKER(FreeMarkerAutoConfiguration)  
spring.freemarker.allowRequestOverride = false   			#设置HttpServletRequest属性是否允许覆盖(隐藏)控制器生成的相同名称的模型属性。
spring.freemarker.allowSessionOverride = false   			#设置HttpSession属性是否允许覆盖(隐藏)控制器生成的相同名称的模型属性。	
spring.freemarker.cache = true  				 			#使用模板缓存。
spring.freemarker.charset=UTF-8 				 			# Template encoding.
spring.freemarker.checkTemplateLocation = true   			#检查模板位置是否存在spring.freemarker.check-template-location=true 
spring.freemarker.contentType = text / html  	 			#Content-Type  
spring.freemarker.exposeRequestAttributes = false  			#在与模板合并之前,设置是否应该将所有请求属性添加到模型中。spring.freemarker.expose-request-attributes=false
spring.freemarker.exposeSessionAttributes = false  			#在与模板合并之前,设置是否应该将所有HttpSession属性添加到模型中。spring.freemarker.expose-session-attributes=false
spring.freemarker.exposeSpringMacroHelpers = false  		#设定是否以springMacroRequestContext的形式暴露RequestContext给Spring’s macro library使用      spring.freemarker.expose-spring-macro-helpers=true
spring.freemarker.prefer-file-system-access=true 			#是否优先从文件系统加载template,以支持热加载,默认为true
spring.freemarker.prefix =  								#在构建URL时,前缀被预先指定以查看名称。
spring.freemarker.requestContextAttribute =  				#所有视图的RequestContext属性的名称.   freemarker.request-context-attribute= 
spring.freemarker.settings.* =  							#Well-known FreeMarker keys which will be passed to FreeMarker's Configuration
spring.freemarker.suffix = .ftl  							#在构建URL时附加到视图名称后面的后缀		
spring.freemarker.templateEncoding = UTF- 8  
spring.freemarker.templateLoaderPath =classpath:/templates  #设定ftl文件路径 类路径:/模板/  
spring.freemarker.viewNames =								#可以解析的视图名称的白名单  
spring.mvc.static-path-pattern=/static/**  					#设定静态文件路径,js,css等
#GIT信息  
spring.git.properties =							#生成的git信息属性文件的资源引用。  
#GROOVY模板(GroovyTemplateAutoConfiguration)  
spring.groovy.template.allow-request-override 				#指定HttpServletRequest的属性是否可以覆盖controller的model的同名项
spring.groovy.template.allow-session-override 				#指定HttpSession的属性是否可以覆盖controller的model的同名项
spring.groovy.template.cache  								#是否开启模板缓存
.spring.groovy.template.charset 							#指定Template编码
.spring.groovy.template.check-template-location 			#是否检查模板的路径是否存在.
spring.groovy.template.configuration.auto-escape 			#是否在渲染模板时自动排查model的变量,默认为: false
spring.groovy.template.configuration.auto-indent 			#是否在渲染模板时自动缩进,默认为false
spring.groovy.template.configuration.auto-indent-string 	#如果自动缩进启用的话,是使用SPACES还是TAB,默认为: SPACES
spring.groovy.template.configuration.auto-new-line 			#渲染模板时是否要输出换行,默认为false
spring.groovy.template.configuration.base-template-class 	#指定template base class.
spring.groovy.template.configuration.cache-templates 		#是否要缓存模板,默认为true
spring.groovy.template.configuration.declaration-encoding 	#在写入declaration header时使用的编码
spring.groovy.template.configuration.expand-empty-elements 	#是使用<br/>这种形式,还是<br></br>这种展开模式,默认为: false)
spring.groovy.template.configuration.locale 				#指定template locale.
spring.groovy.template.configuration.new-line-string 		#当启用自动换行时,换行的输出,默认为系统的line.separator属性的值
spring.groovy.template.configuration.resource-loader-path 	#指定groovy的模板路径,默认为classpath:/templates/
spring.groovy.template.configuration.use-double-quotes 		#指定属性要使用双引号还是单引号,默认为false
spring.groovy.template.content-type 						#指定Content-Type.
spring.groovy.template.enabled 								#是否开启groovy模板的支持.
spring.groovy.template.expose-request-attributes 			#设定所有request的属性在merge到模板的时候,是否要都添加到model中.
spring.groovy.template.expose-session-attributes 			#设定所有request的属性在merge到模板的时候,是否要都添加到model中.
spring.groovy.template.expose-spring-macro-helpers 			#设定是否以springMacroRequestContext的形式暴露RequestContext给Spring’s macro library使用
spring.groovy.template.prefix 								#指定模板的前缀.
spring.groovy.template.request-context-attribute 			#指定RequestContext属性的名.
spring.groovy.template.resource-loader-path				 	#指定模板的路径,默认为: classpath:/templates/
spring.groovy.template.suffix								#指定模板的后缀
spring.groovy.template.view-names 							#指定要使用模板的视图名称.
#h2
spring.h2.console.enabled						#是否开启控制台,默认为false
spring.h2.console.path							#指定控制台路径,默认为: /h2-console
#hornetq	(HornetQProperties)  
spring.hornetq.embedded.cluster-password		#指定集群的密码,默认启动时随机生成.
spring.hornetq.embedded.data-directory			#指定Journal file 的目录. 如果不开启持久化则不必指定.
spring.hornetq.embedded.enabled					#是否开启内嵌模式,默认:true
spring.hornetq.embedded.persistent				#是否开启persistent store,默认: false
spring.hornetq.embedded.queues					#指定启动是创建的queue,多个以逗号分隔,默认: []
spring.hornetq.embedded.server-id				#指定Server ID. 默认使用自增数字,从0开始.
spring.hornetq.embedded.topics					#指定启动时创建的topic,多个以逗号分隔,默认: []
spring.hornetq.host								#指定HornetQ broker 的host,默认: localhost
spring.hornetq.mode								#指定HornetQ 的部署模式,默认是auto-detected,也可以指定native 或者 embedded.
spring.hornetq.port								#指定HornetQ broker 端口,默认: 5445
#http
spring.hateoas.apply-to-primary-object-mapper   #设定是否对object mapper也支持HATEOAS,默认为: true
spring.http.converters.preferred-json-mapper   	#是否优先使用JSON mapper来转换.
spring.http.encoding.charset 					#指定http请求和相应的Charset,默认: UTF-8
spring.http.encoding.enabled					#是否开启http的编码支持,默认为true
spring.http.encoding.force						#是否强制对http请求和响应进行编码,默认为true
#jersey
spring.jersey.filter.order 						#指定Jersey filter的order,默认为: 0
spring.jersey.init								#指定传递给Jersey的初始化参数.
spring.jersey.type								#指定Jersey的集成类型,可以是servlet或者filter.
#jms
spring.jms.jndi-name							#指定Connection factory JNDI 名称.
spring.jms.listener.acknowledge-mode			#指定ack模式,默认自动ack.
spring.jms.listener.auto-startup				#是否启动时自动启动jms,默认为: true
spring.jms.listener.concurrency					#指定最小的并发消费者数量.
spring.jms.listener.max-concurrency				#指定最大的并发消费者数量.
spring.jms.pub-sub-domain						#是否使用默认的destination type来支持 publish/subscribe,默认: false
jmx
spring.jmx.default-domain						#指定JMX domain name.
spring.jmx.enabled								#是否暴露jmx,默认为true
spring.jmx.server								#指定MBeanServer bean name. 默认为: mbeanServer)
#jooq
spring.jooq.sql-dialect							#指定JOOQ使用的SQLDialect,比如POSTGRES.
#Messages
spring.messages.basename		 							#指定message的basename,多个以逗号分隔,如果不加包名的话,默认从classpath路径开始,默认: messages
spring.messages.cache-seconds	 							#设定加载的资源文件缓存失效时间,-1的话为永不过期,默认为-1
spring.messages.encoding    			 					#设定Message bundles的编码,默认: UTF-8
#JPA
spring.jpa.database								#指定目标数据库.
spring.jpa.database-platform					#指定目标数据库的类型.
spring.jpa.generate-ddl							#是否在启动时初始化schema,默认为false
spring.jpa.hibernate.ddl-auto					#指定DDL mode (none, validate, update, create, create-drop). 当使用内嵌数据库时,默认是create-drop,否则为none.
spring.jpa.hibernate.naming-strategy			#指定命名策略.
spring.jpa.open-in-view							#是否注册OpenEntityManagerInViewInterceptor,绑定JPA EntityManager到请求线程中,默认为: true
spring.jpa.properties							#添加额外的属性到JPA provider.
spring.jpa.show-sql								#是否开启sql的log,默认为: false
#json
spring.jackson.date-format						#指定日期格式,比如yyyy-MM-dd HH:mm:ss,或者具体的格式化类的全限定名
spring.jackson.deserialization					#是否开启Jackson的反序列化
spring.jackson.generator						#是否开启json的generators.
spring.jackson.joda-date-time-format			#指定Joda date/time的格式,比如yyyy-MM-dd HH:mm:ss). 如果没有配置的话,dateformat会作为backup
spring.jackson.locale							#指定json使用的Locale.
spring.jackson.mapper							#是否开启Jackson通用的特性.
spring.jackson.parser							#是否开启jackson的parser特性.
spring.jackson.property-naming-strategy			#指定PropertyNamingStrategy (CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES)或者指定PropertyNamingStrategy子类的全限定类名.
spring.jackson.serialization					#是否开启jackson的序列化.
spring.jackson.serialization-inclusion			#指定序列化时属性的inclusion方式,具体查看JsonInclude.Include枚举.
spring.jackson.time-zone						#指定日期格式化时区,比如America/Los_Angeles或者GMT+10.
#JTA
spring.jta.allow-multiple-lrc					#是否允许 multiple LRC,默认为: false
spring.jta.asynchronous2-pc						#指定两阶段提交是否可以异步,默认为: false
spring.jta.background-recovery-interval			#指定多少分钟跑一次recovery process,默认为: 1
spring.jta.background-recovery-interval-seconds	#指定多久跑一次recovery process,默认: 60
spring.jta.current-node-only-recovery			#是否过滤掉其他非本JVM的recovery,默认为: true
spring.jta.debug-zero-resource-transaction		#是否追踪没有使用指定资源的事务,默认为: false
spring.jta.default-transaction-timeout			#设定默认的事务超时时间,默认为60
spring.jta.disable-jmx							#是否禁用jmx,默认为false
spring.jta.enabled								#是否开启JTA support,默认为: true
spring.jta.exception-analyzer					#设置指定的异常分析类
spring.jta.filter-log-status					#使用Bitronix Transaction Manager时,是否写mandatory logs,开启的话,可以节省磁盘空间,但是调试会复杂写,默认为false
spring.jta.force-batching-enabled				#使用Bitronix Transaction Manager时,是否批量写磁盘,默认为true.
spring.jta.forced-write-enabled					#使用Bitronix Transaction Manager时,是否强制写日志到磁盘,默认为true
spring.jta.graceful-shutdown-interval			#当使用Bitronix Transaction Manager,指定shutdown时等待事务结束的时间,超过则中断,默认为60
spring.jta.jndi-transaction-synchronization-registry-name		#当使用Bitronix Transaction Manager时,在JNDI下得事务同步registry,默认为: java:comp/TransactionSynchronizationRegistry
spring.jta.jndi-user-transaction-name			#指定在JNDI使用Bitronix Transaction Manager的名称,默认:java:comp/UserTransaction
spring.jta.journal								#当使用Bitronix Transaction Manager,指定The journal是否disk还是null还是一个类的全限定名,默认disk
spring.jta.log-dir								#Transaction logs directory.
spring.jta.log-part1-filename					#指定The journal fragment文件1的名字,默认: btm1.tlog
spring.jta.log-part2-filename					#指定The journal fragment文件2的名字,默认: btm2.tlog
spring.jta.max-log-size-in-mb					#指定journal fragments大小的最大值. 默认: 2M
spring.jta.resource-configuration-filename		#指定Bitronix Transaction Manager配置文件名.
spring.jta.server-id							#指定Bitronix Transaction Manager实例的id.
spring.jta.skip-corrupted-logs					#是否忽略corrupted log files文件,默认为false.
spring.jta.transaction-manager-id				#指定Transaction manager的唯一标识.
spring.jta.warn-about-zero-resource-transaction	#当使用Bitronix Transaction Manager时,是否对没有使用指定资源的事务进行警告,默认为: true
#mail
spring.mail.default-encoding					#指定默认MimeMessage的编码,默认为: UTF-8
spring.mail.host								#指定SMTP server host.
spring.mail.jndi-name							#指定mail的jndi名称
spring.mail.password							#指定SMTP server登陆密码.
spring.mail.port								#指定SMTP server port.
spring.mail.properties							#指定JavaMail session属性.
spring.mail.protocol							#指定SMTP server使用的协议,默认为: smtp
spring.mail.test-connection						#指定是否在启动时测试邮件服务器连接,默认为false
spring.mail.username							#指定SMTP server的用户名.
#mobile
spring.mobile.devicedelegatingviewresolver.enable-fallback	#是否支持fallback的解决方案,默认false
spring.mobile.devicedelegatingviewresolver.enabled			#是否开始device view resolver,默认为: false
spring.mobile.devicedelegatingviewresolver.mobile-prefix	#设定mobile端视图的前缀,默认为:mobile/
spring.mobile.devicedelegatingviewresolver.mobile-suffix	#设定mobile视图的后缀
spring.mobile.devicedelegatingviewresolver.normal-prefix	#设定普通设备的视图前缀
spring.mobile.devicedelegatingviewresolver.normal-suffix	#设定普通设备视图的后缀
spring.mobile.devicedelegatingviewresolver.tablet-prefix	#设定平板设备视图前缀,默认:tablet/
spring.mobile.devicedelegatingviewresolver.tablet-suffix	#设定平板设备视图后缀.
spring.mobile.sitepreference.enabled						#是否启用SitePreferenceHandler,默认为: true
#MONGODB(Mongo性能)  
spring.data.mongodb.host =						#分贝主机  
spring.data.mongodb.port = 27017  				#连接端口(默认为  27107 )  
spring.data.mongodb.uri = 						#连接URL  
spring.mongodb.embedded.features				#指定要开启的特性,逗号分隔.
spring.mongodb.embedded.version					#指定要使用的版本,默认: 2.6.10
#MANAGEMENT HTTP SERVER(ManagementServerProperties)  
management.add-application-context-header = true#在每个响应中添加“X-Application-Context”HTTP标头。  
management.address =							#管理端点应该绑定的网络地址。  
management.context-path =						#管理端点上下文路径。例如`/执行器`  
management.port =								#管理端点HTTP端口。默认使用与应用程序相同的端口。  
management.security.enabled = true				#启用
management.security.role = ADMIN				#访问管理端点所需的角色。  
management.security.sessions 					#会话创建策略使用(always, never, if_required, stateless)。  
  
#HEALTH INDICATORS健康指标(以前的健康状况*)  
management.health.db.enabled = true				#启用数据库运行状况检查。  
management.health.defaults.enabled = true		#启用默认健康指标。  
management.health.diskspace.enabled = true		#启用磁盘空间运行状况检查。  
management.health.diskspace.path =				#用于计算可用磁盘空间的路径。  
management.health.diskspace.threshold = 0		#应该可用的最小磁盘空间(以字节为单位)。  
management.health.elasticsearch.enabled = true	#启用elasticsearch运行状况检查。  
management.health.elasticsearch.indices =		#逗号分隔的索引名称。  
management.health.elasticsearch.response-timeout = 100		#等待群集响应的时间(以毫秒为单位)。  
management.health.jms.enabled = true			#启用JMS运行状况检查。  
management.health.mail.enabled = true			#启用邮件运行状况检查。  
management.health.mongo.enabled = true			#启用MongoDB运行状况检查。  
management.health.rabbit.enabled = true			#启用RabbitMQ健康检查。  
management.health.redis.enabled = true			#启用Redis运行状况检查。  
management.health.solr.enabled = true			#启用Solr运行状况检查。  
management.health.status.order 					#以逗号分隔的健康状态列表。  
management.trace.include 						#要包含在跟踪中的项目。  
#METRICS EXPORT(MetricExportProperties)  
spring.metrics.export.aggregate.key-pattern =	#告诉聚合器如何处理源存储库中的密钥的模式。  
spring.metrics.export.aggregate.prefix =		#全局存储库的前缀(如果处于活动状态)。  
spring.metrics.export.delay-millis = 5000		#输出滴答之间的延迟(以毫秒为单位)。度量标准按照计划导出到外部源。  
spring.metrics.export.enabled = true			#启用metric 标准导出的标志(假设MetricWriter可用)。  
spring.metrics.export.excludes =				#要排除的metric 标准名称的模式列表。包括后应用。  
spring.metrics.export.includes =				#要包含的metric 标准名称的模式列表。  
spring.metrics.export.redis.key 				#Redis存储库导出密钥(如果有效)。  
spring.metrics.export.redis.prefix				#如果处于活动状态,redis存储库的前缀。  
spring.metrics.export.send-latest 				#根据不导出不变的metric 值的标志关闭所有可用的优化。  
spring.metrics.export.statsd.host =				#接收导出metric 的statsd server的主机。  
spring.metrics.export.statsd.port = 8125		#接收导出metric的statsd server的端口。  
spring.metrics.export.statsd.prefix =			#统计导出metric的前缀。  
spring.metrics.export.triggers。* =				#每个MetricWriter bean名称的特定触发器属性。  
#multipart
multipart.enabled								#是否开启文件上传支持,默认为true
multipart.file-size-threshold					#设定文件写入磁盘的阈值,单位为MB或KB,默认为0
multipart.location								#指定文件上传路径.
multipart.max-file-size							#指定文件大小最大值,默认1MB
multipart.max-request-size						#指定每次请求的最大值,默认为10MB
#mustcache
spring.mustache.cache							#是否Enable template caching.
spring.mustache.charset							#指定Template的编码.
spring.mustache.check-template-location			#是否检查默认的路径是否存在.
spring.mustache.content-type					#指定Content-Type.
spring.mustache.enabled							#是否开启mustcache的模板支持.
spring.mustache.prefix							#指定模板的前缀,默认: classpath:/templates/
spring.mustache.suffix							#指定模板的后缀,默认: .html
spring.mustache.view-names						#指定要使用模板的视图名.
#MVC(SPRING MVC相关的一些配置)  
http.mappers.json-pretty-print = false  					#打印JSON  
http.mappers.json-sort-keys = false  						#排序键  
spring.mvc.locale =											#设置固定语言环境,例如en_UK  
spring.mvc.date-format =									#设置固定的日期格式,例如dd / MM / yyyy  
spring.mvc.async.request-timeout	 						#设定async请求的超时时间,以毫秒为单位,如果没有设置的话,以具体实现的超时时间为准,比如tomcat的servlet3的话是10秒.
spring.mvc.favicon.enabled 									#是否支持favicon.ico,默认为: true
spring.mvc.ignore-default-model-on-redirect  				#在重定向时是否忽略默认model的内容,默认为true
spring.mvc.locale#指定使用的Locale.
spring.mvc.message-codes-resolver-format 					#指定message codes的格式化策略(PREFIX_ERROR_CODE,POSTFIX_ERROR_CODE).
spring.view.prefix =   										#MVC视图前缀  
spring.view.suffix =   										#...和后缀  	
spring.resources.cache-period =             				#发送到浏览器的标题缓存超时  
spring.resources.add-mappings = true         				#如果 应该添加默认映射   
#liquibase
liquibase.change-log							#Change log 配置文件的路径,默认值为classpath:/db/changelog/db.changelog-master.yaml
liquibase.check-change-log-location				#是否坚持change log的位置是否存在,默认为true.
liquibase.contexts								#逗号分隔的运行时context列表.
liquibase.default-schema						#默认的schema.
liquibase.drop-first							#是否首先drop schema,默认为false
liquibase.enabled								#是否开启liquibase,默认为true.
liquibase.password								#目标数据库密码
liquibase.url									#要迁移的JDBC URL,如果没有指定的话,将使用配置的主数据源.
liquibase.user									#目标数据用户名
#logging日志
logging.path =  							#文件路径
logging.file = myapp.log   					#文件名称
logging.config =							#如果你即想完全掌控日志配置,但又不想用logback.xml作为Logback配置的名字,可以通过logging.config属性指定自定义的名字
logging.level.root=INFO  					#日志级别  从控制台打印出来的日志级别只有ERROR, WARN 还有INFO,如果你想要打印debug级别的日志,可以配置debug=true
logging.level.org.springframework.web=DEBUG
logging.level.org.hibernate=ERROR									
#rabbitmq
spring.rabbitmq.addresses						#指定client连接到的server的地址,多个以逗号分隔.
spring.rabbitmq.dynamic							#是否创建AmqpAdmin bean. 默认为: true)
spring.rabbitmq.host							#指定RabbitMQ host.默认为: localhost)
spring.rabbitmq.listener.acknowledge-mode		#指定Acknowledge的模式.
spring.rabbitmq.listener.auto-startup			#是否在启动时就启动mq,默认: true)
spring.rabbitmq.listener.concurrency			#指定最小的消费者数量.
spring.rabbitmq.listener.max-concurrency		#指定最大的消费者数量.
spring.rabbitmq.listener.prefetch				#指定一个请求能处理多少个消息,如果有事务的话,必须大于等于transaction数量.
spring.rabbitmq.listener.transaction-size		#指定一个事务处理的消息数量,最好是小于等于prefetch的数量.
spring.rabbitmq.password						#指定broker的密码.
spring.rabbitmq.port							#指定RabbitMQ 的端口,默认: 5672)
spring.rabbitmq.requested-heartbeat				#指定心跳超时,0为不指定.
spring.rabbitmq.ssl.enabled						#是否开始SSL,默认: false)
spring.rabbitmq.ssl.key-store					#指定持有SSL certificate的key store的路径
spring.rabbitmq.ssl.key-store-password			#指定访问key store的密码.
spring.rabbitmq.ssl.trust-store					#指定持有SSL certificates的Trust store.
spring.rabbitmq.ssl.trust-store-password		#指定访问trust store的密码.
spring.rabbitmq.username						#指定登陆broker的用户名.
spring.rabbitmq.virtual-host					#指定连接到broker的Virtual host.
#redis
spring.redis.database							#指定连接工厂使用的Database index,默认为: 0
spring.redis.host								#指定Redis server host,默认为: localhost
spring.redis.password							#指定Redis server的密码
spring.redis.pool.max-active					#指定连接池最大的活跃连接数,-1表示无限,默认为8
spring.redis.pool.max-idle						#指定连接池最大的空闲连接数,-1表示无限,默认为8
spring.redis.pool.max-wait						#指定当连接池耗尽时,新获取连接需要等待的最大时间,以毫秒单位,-1表示无限等待
spring.redis.pool.min-idle						#指定连接池中空闲连接的最小数量,默认为0
spring.redis.port								#指定redis服务端端口,默认: 6379
spring.redis.sentinel.master					#指定redis server的名称
spring.redis.sentinel.nodes						#指定sentinel节点,逗号分隔,格式为host:port.
spring.redis.timeout							#指定连接超时时间,毫秒单位,默认为0
#resource
spring.resources.add-mappings					#是否开启默认的资源处理,默认为true
spring.resources.cache-period					#设定资源的缓存时效,以秒为单位.
spring.resources.chain.cache					#是否开启缓存,默认为: true
spring.resources.chain.enabled					#是否开启资源 handling chain,默认为false
spring.resources.chain.html-application-cache	#是否开启h5应用的cache manifest重写,默认为: false
spring.resources.chain.strategy.content.enabled	#是否开启内容版本策略,默认为false
spring.resources.chain.strategy.content.paths	#指定要应用的版本的路径,多个以逗号分隔,默认为:[/**]
spring.resources.chain.strategy.fixed.enabled	#是否开启固定的版本策略,默认为false
spring.resources.chain.strategy.fixed.paths		#指定要应用版本策略的路径,多个以逗号分隔
spring.resources.chain.strategy.fixed.version	#指定版本策略使用的版本号
spring.resources.static-locations				#指定静态资源路径,默认为classpath:[/META-INF/resources/,/resources/, /static/, /public/]以及context:/
#security     spring security是springboot支持的权限控制系统。
security.basic.authorize-mode					#要使用权限控制模式.
security.basic.enabled							#是否开启基本的鉴权,默认为true
security.basic.path								#需要鉴权的path,多个的话以逗号分隔,默认为[/**]
security.basic.realm							#HTTP basic realm 的名字,默认为Spring
security.enable-csrf							#是否开启cross-site request forgery校验,默认为false.
security.filter-order							#Security filter chain的order,默认为0
security.headers.cache							#是否开启http头部的cache控制,默认为false.
security.headers.content-type					#是否开启X-Content-Type-Options头部,默认为false.
security.headers.frame							#是否开启X-Frame-Options头部,默认为false.
security.headers.hsts							#指定HTTP Strict Transport Security (HSTS)模式(none, domain, all).
security.headers.xss							#是否开启cross-site scripting (XSS) 保护,默认为false.
security.ignored								#指定不鉴权的路径,多个的话以逗号分隔.
security.oauth2.client.access-token-uri			#指定获取access token的URI.
security.oauth2.client.access-token-validity-seconds		#指定access token失效时长.
security.oauth2.client.additional-information.[key]			#设定要添加的额外信息.
security.oauth2.client.authentication-scheme				#指定传输不记名令牌(bearer token)的方式(form, header, none,query),默认为header
security.oauth2.client.authorities				#指定授予客户端的权限.
security.oauth2.client.authorized-grant-types	#指定客户端允许的grant types.
security.oauth2.client.auto-approve-scopes		#对客户端自动授权的scope.
security.oauth2.client.client-authentication-scheme			#传输authentication credentials的方式(form, header, none, query),默认为header方式
security.oauth2.client.client-id				#指定OAuth2 client ID.
security.oauth2.client.client-secret			#指定OAuth2 client secret. 默认是一个随机的secret.
security.oauth2.client.grant-type				#指定获取资源的access token的授权类型.
security.oauth2.client.id						#指定应用的client ID.
security.oauth2.client.pre-established-redirect-uri			#服务端pre-established的跳转URI.
security.oauth2.client.refresh-token-validity-seconds		#指定refresh token的有效期.
security.oauth2.client.registered-redirect-uri				#指定客户端跳转URI,多个以逗号分隔.
security.oauth2.client.resource-ids				#指定客户端相关的资源id,多个以逗号分隔.
security.oauth2.client.scope					#client的scope
security.oauth2.client.token-name				#指定token的名称
security.oauth2.client.use-current-uri			#是否优先使用请求中URI,再使用pre-established的跳转URI. 默认为true
security.oauth2.client.user-authorization-uri	#用户跳转去获取access token的URI.
security.oauth2.resource.id						#指定resource的唯一标识.
security.oauth2.resource.jwt.key-uri			#JWT token的URI. 当key为公钥时,或者value不指定时指定.
security.oauth2.resource.jwt.key-value			#JWT token验证的value. 可以是对称加密或者PEMencoded RSA公钥. 可以使用URI作为value.
security.oauth2.resource.prefer-token-info		#是否使用token info,默认为true
security.oauth2.resource.service-id				#指定service ID,默认为resource.
security.oauth2.resource.token-info-uri			#token解码的URI.
security.oauth2.resource.token-type				#指定当使用userInfoUri时,发送的token类型.
security.oauth2.resource.user-info-uri			#指定user info的URI
security.oauth2.sso.filter-order				#如果没有显示提供WebSecurityConfigurerAdapter时指定的Filter order.
security.oauth2.sso.login-path					#跳转到SSO的登录路径默认为/login.
security.require-ssl							#是否对所有请求开启SSL,默认为false.
security.sessions								#指定Session的创建策略(always, never, if_required, stateless).
security.user.name								#指定默认的用户名,默认为user.
security.user.password							#默认的用户密码.
security.user.role								#默认用户的授权角色.
#sendgrid
spring.sendgrid.password						#指定SendGrid password.
spring.sendgrid.proxy.host						#指定SendGrid proxy host.
spring.sendgrid.proxy.port						#指定SendGrid proxy port.
spring.sendgrid.username						#指定SendGrid username.
#server配置
server.address								#指定server绑定的地址
server.compression.enabled					#是否开启压缩,默认为false.
server.compression.excluded-user-agents		#指定不压缩的user-agent,多个以逗号分隔,默认值为:text/html,text/xml,text/plain,text/css
server.compression.mime-types				#指定要压缩的MIME type,多个以逗号分隔.
server.compression.min-response-size		#执行压缩的阈值,默认为2048
server.context-parameters.[param name]		#设置servlet context 参数
server.context-path							#设定应用的context-path.
server.display-name							#设定应用的展示名称,默认: application
server.jsp-servlet.class-name				#设定编译JSP用的servlet,默认: org.apache.jasper.servlet.JspServlet)
server.jsp-servlet.init-parameters.[param name]				#设置JSP servlet 初始化参数.
server.jsp-servlet.registered				#设定JSP servlet是否注册到内嵌的servlet容器,默认true
server.port									#设定http监听端口
server.servlet-path							#设定dispatcher servlet的监听路径,默认为: /
#SHELL      REMOTE SHELL  
shell.auth = simple								#认证类型。根据环境自动检测。  
shell.auth.jaas.domain =my-domain				#JAAS域。  
shell.auth.key.path =							#认证密钥的路径。这应该指向一个有效的“.pem”文件。  
shell.auth.simple.user.name = user				#登录用户。  
shell.auth.simple.user.password =				#登录密码。  
shell.auth.spring.roles = ADMIN					#用于登录到CRaSH控制台的所需角色的逗号分隔列表。  
shell.command-path-patterns = classpath *:/ commands / **,classpath *:/ crash / commands / **#用于查找命令的模式。  
shell.command-refresh-interval = -1				#扫描更改并在必要时更新命令(以秒为单位)。  
shell.config-path-patterns = 					#用于查找配置的模式。  
shell.disabled-commands 						#禁用命令的逗号分隔列表。  
shell.disabled-plugins =						#禁用逗号分隔的插件列表。根据环境,某些插件默认是禁用的。  
shell.ssh.auth-timeout =						#用户提示重新登录后的毫秒数。  
shell.ssh.enabled = true						#启用CRaSH SSH支持。  
shell.ssh.idle-timeout =						#关闭未使用的连接之后的毫秒数。  
shell.ssh.key-path =							#SSH服务器密钥的路径。  
shell.ssh.port = 2000							#SSH端口。  
shell.telnet.enabled = false					#启用CRaSH telnet支持。如果TelnetPlugin可用,则默认启用。  
shell.telnet.port = 5000						#Telnet端口。  
#social
spring.social.auto-connection-views				#是否开启连接状态的视图,默认为false
spring.social.facebook.app-id					#指定应用id
spring.social.facebook.app-secret				#指定应用密码
spring.social.linkedin.app-id					#指定应用id
spring.social.linkedin.app-secret				#指定应用密码
spring.social.twitter.app-id					#指定应用ID.
spring.social.twitter.app-secret				#指定应用密码
#ssl配置
server.ssl.ciphers								#是否支持SSL ciphers.
server.ssl.client-auth							#设定client authentication是wanted 还是 needed.
server.ssl.enabled								#是否开启ssl,默认: true
server.ssl.key-alias							#设定key store中key的别名.
server.ssl.key-password							#访问key store中key的密码.
server.ssl.key-store							#设定持有SSL certificate的key store的路径,通常是一个.jks文件.
server.ssl.key-store-password					#设定访问key store的密码.
server.ssl.key-store-provider					#设定key store的提供者.
server.ssl.key-store-type						#设定key store的类型.
server.ssl.protocol								#使用的SSL协议,默认: TLS
server.ssl.trust-store							#持有SSL certificates的Trust store.
server.ssl.trust-store-password					#访问trust store的密码.
server.ssl.trust-store-provider					#设定trust store的提供者.
server.ssl.trust-store-type						#指定trust store的类型.
#tomcat服务器配置(ServerProperties)  
server.port = 8080   										#端口
server.address =  											#该服务绑定IP地址,启动服务器时如本机不是该IP地址则抛出异常启动失败,只有特殊需求的情况下才配置
server.session-timeout =									#会话超时秒数  默认30
server.servlet.context-path =   									#上下文路径,默认为  '/'  
server.servlet-path =										#servlet路径,默认为  '/'  
server.tomcat.access-log-pattern =							#访问日志的日志模式  
server.tomcat.access-log-enabled = false  					#启用访问日志记录  
server.tomcat.protocol-header = x -forwarded-proto 			#ssl转发标头  
server.tomcat.accesslog.pattern								#设定access logs的格式,默认: common
server.tomcat.accesslog.prefix								#设定Log 文件的前缀,默认: access_log
server.tomcat.accesslog.suffix								#设定Log 文件的后缀,默认: .log
server.tomcat.background-processor-delay = 30 ; 			# 后台线程方法的Delay大小: 30
server.tomcat.basedir										#设定Tomcat的base 目录,如果没有指定则使用临时目录.
server.tomcat.internal-proxies								#设定信任的正则表达式,默认:“10\.\d{1,3}\.\d{1,3}\.\d{1,3}| 192\.168\.\d{1,3}\.\d{1,3}|
															#169\.254\.\d{1,3}\.\d{1,3}| 127\.\d{1,3}\.\d{1,3}\.\d{1,3}| 172\.1[6-9]{1}\.\d{1,3}\
															#.\d{1,3}| 172\.2[0-9]{1}\.\d{1,3}\.\d{1,3}|172\.3[0-1]{1}\.\d{1,3}\.\d{1,3}”
server.tomcat.max-http-header-size							#设定http header的最小值,默认: 0
server.tomcat.max-threads									#设定tomcat的最大工作线程数,默认为: 0
server.tomcat.port-header									#设定http header使用的,用来覆盖原来port的value.
server.tomcat.protocol-header								#设定Header包含的协议,通常是 X-Forwarded-Proto,如果remoteIpHeader有值,则将设置为RemoteIpValve.
server.tomcat.protocol-header-https-value					#设定使用SSL的header的值,默认https.
server.tomcat.remote-ip-header								#设定remote IP的header,如果remoteIpHeader有值,则设置为RemoteIpValve
server.tomcat.uri-encoding									#设定URI的解码字符集.
#THYMELEAF(Thymeleaf 模板)  
spring.thymeleaf.prefix =    								#类路径:/模板/  检查模板位置
spring.thymeleaf.suffix =  
spring.thymeleaf.mode = HTML5  								#模板的模式
spring.thymeleaf.encoding = UTF- 8  
spring.thymeleaf.content-type = text / html#; charset = <编码>  
spring.thymeleaf.cache = true  								#这个开发配置为false,避免改了模板还要重启服务器 
#undertow
server.undertow.access-log-dir					#设定Undertow access log 的目录,默认: logs
server.undertow.access-log-enabled				#是否开启access log,默认: false
server.undertow.access-log-pattern				#设定access logs的格式,默认: common
server.undertow.accesslog.dir					#设定access log 的目录.
server.undertow.buffer-size						#设定buffer的大小.
server.undertow.buffers-per-region				#设定每个region的buffer数
server.undertow.direct-buffers					#设定堆外内存
server.undertow.io-threads						#设定I/O线程数.
server.undertow.worker-threads					#设定工作线程数
#velocity
spring.velocity.allow-request-override			#指定HttpServletRequest的属性是否可以覆盖controller的model的同名项
spring.velocity.allow-session-override			#指定HttpSession的属性是否可以覆盖controller的model的同名项
spring.velocity.cache							#是否开启模板缓存
spring.velocity.charset							#设定模板编码
spring.velocity.check-template-location			#是否检查模板路径是否存在.
spring.velocity.content-type					#设定ContentType的值
spring.velocity.date-tool-attribute				#设定暴露给velocity上下文使用的DateTool的名
spring.velocity.enabled							#设定是否允许mvc使用velocity
spring.velocity.expose-request-attributes		#是否在merge模板的时候,将request属性都添加到model中
spring.velocity.expose-session-attributes		#是否在merge模板的时候,将HttpSession属性都添加到model中
spring.velocity.expose-spring-macro-helpers		#设定是否以springMacroRequestContext的名来暴露RequestContext给Spring’s macro类库使用
spring.velocity.number-tool-attribute			#设定暴露给velocity上下文的NumberTool的名
spring.velocity.prefer-file-system-access		#是否优先从文件系统加载模板以支持热加载,默认为true
spring.velocity.prefix							#设定velocity模板的前缀.
spring.velocity.properties						#设置velocity的额外属性.
spring.velocity.request-context-attribute		#设定RequestContext attribute的名.
spring.velocity.resource-loader-path			#设定模板路径,默认为: classpath:/templates/
spring.velocity.suffix							#设定velocity模板的后缀.
spring.velocity.toolbox-config-location			#设定Velocity Toolbox配置文件的路径,比如 /WEB-INF/toolbox.xml.
spring.velocity.view-names						#设定需要解析的视图名称.

 

  • 1
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
好的,关于 nacos 的 application.properties 配置文件,我可以为你提供以下详细解释: 1. server.mode:指定 Nacos 运行模式,支持 cluster、standalone、config 和 console 四种模式,默认是 standalone。 2. server.port:指定 Nacos 服务端口号,默认为 8848。 3. server.tomcat.max-threads:指定 Tomcat 最大线程数,默认为 200。 4. server.tomcat.accept-count:指定 Tomcat 接受的最大连接数,默认为 200。 5. spring.datasource.platform:数据源类型,支持 MySQL、Derby、H2 等。 6. spring.datasource.dynamic.datasource.master.url:主数据源 URL。 7. spring.datasource.dynamic.datasource.master.username:主数据源用户名。 8. spring.datasource.dynamic.datasource.master.password:主数据源密码。 9. spring.datasource.dynamic.datasource.master.driver-class-name:主数据源驱动类名。 10. spring.datasource.dynamic.datasource.slave.url:从数据源 URL。 11. spring.datasource.dynamic.datasource.slave.username:从数据源用户名。 12. spring.datasource.dynamic.datasource.slave.password:从数据源密码。 13. spring.datasource.dynamic.datasource.slave.driver-class-name:从数据源驱动类名。 14. logging.level.com.alibaba.nacos:指定 Nacos 日志级别。 15. spring.cloud.nacos.config.server-addr:指定 Nacos 配置心地址。 16. spring.cloud.nacos.config.namespace:指定 Nacos 配置心命名空间。 以上是 nacos 的 application.properties 配置文件详解,希望能够帮助到你。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值