multipart

multipart.enabled 开启上传支持默认true

multipart.filesizethreshold: 大于该值的文件会被写到磁盘

multipart.location 上传文件存放位置

multipart.maxfilesize最大文件大小

multipart.maxrequestsize 最大请求大小

server

server.address 服务器地址

server.port 服务器端

server.contextparameters.[param name] 设置 servlet 上下文参数

server.contextpath 应用上下文路径

Jspservelt

server.jspservelt.classname 针对jsp 使用的 Servlet 类名默认org.apache.jasper.servlet.JspServlet

server.jspservlet.registered JspServelt 是否注册内嵌的 Servlet 容器里(默认 true

server.jspservlet.initparameters[param name] 设置 Jsp Servlet 初始化参数

server.servletpath分发器 Servlet路径默认:/)

Session

server.session.cookie.domain 回话 Cookie 的域

server.session.cookie.comment Cookie 注释

server.session.cookie.maxage Cookie 最大保存时间单位 s)

server.session.cookie.name Cookie 名称

server.session.cookie.timeout 超时时间

tomcat

server.tomcat.accesslog.directory 创建日志文件目录

server.tomcat.accesslog.enabled 是否开启访问日志默认false

server.tomcat.accesslog.pattern 访问日志格式默认common)

server.tomcat.accesslog.prefix日志前缀默认access_log)

server.tomcat.accesslog.suffix 日志后缀默认:.log)

server.tomcat.maxhttpheadersizeHttp 消息最大字节数(默认:0)

server.tomcat.uri-encoding 用来解码 URI 的字符编码

Cache

spring.cache.cachenames 如果底层缓存管理器支持缓存名的话,可以这里指定创建缓存列表,用逗号分 隔。通常这会禁用运行创建其他额外缓存的能力。

spring.cache.config 用来初始化 EhCache 的配置文件位置

spring.cache.guava.spec 用来创建缓存 Spec

spring.cache.hazelcast.config 用来初始化 Hazeleast配置文件位置

spring.cache.infinispan.config 用来初始化 Infinispan 配置文件位置

spring.cache.jcache.config用来初始化缓存管理器配置文件位置配置文件依赖于底层缓存实现

spring.cache.jcache.provider CachingProvider 实现的全限定类名,用来获取 JSR-107 兼容缓存管理器,仅在 Classpath 里有不只一个 JSR-107 实现时才需要这个属性

spring.cache.type 缓存类型,默认根据环境自动检测

Data

spring.data.jpa.repositories.enabled 开启 JPA 仓库(默认:true

spring.data.mongodb.authentication-database 身份认证数据库

spring.data.mongodb.database 数据库

spring.data.mongodb.field-naming-strategy使用的 FieldNamingStrategy 的全限定名。

spring.data.mongodb.grid.fs.database GridFS 数据库名称

spring.data.mongodb.host MongoDB 服务器地址

spring.data.mongodb.username MongoDB 账号

spring.data.mongodb.passwordMongoDB 密码

spring.data.mongodb.port 端口号

spring.data.mongodb.repositories.enabled 开启 Mongo 仓库默认值true

spring.data.mongodb.uri Mongo 数据库 URI。设置了该属性后就主机端口号会被忽略。(默认值: mongodb:// localhost/test

spring.data.rest.basepath 用于发布仓库资源基本路径

spring.data.rest.defaultpagesize 分页数据的默认页大小(默认:20)

spring.data.rest.limit-param-name用于标识一次返回多少记录的 URL 查询字符串参数名。(默认值: size

spring.data.rest.maxpage-sieze: 最大分页大小(默认:1000)

spring.data.rest.page-param-name URL 查询字符串参数的名称,用来标识返回哪一页。(默认值: page

spring.data.rest.returnbody-on-create创建实体是否返回一个响应体(默认:false

spring.data.rest.return-body-on-update更新实体后是否返回一个响应体(默认:false

spring.data.rest.sort-param-name URL 查询字符串参数的名称,用来表示结果排序方向(默认:name)

spring.data.solr.host Solr 的主机地址。如果设置了 zkhost忽略属性。(默认值: http://127.0.0.1: 8983/solr

spring.data.solr.repositories.enabled 开启 solr 仓库(默认:true

spring.data.solr.zkhost zk 主机地址格式为 “主机端口

spring.datasource.allowpoolsuspension 是否允许池暂停(pool suspension)。在开启池暂停后会有性能会受到一定影响,除非你 真的需要这个功能例如在冗余的系统下),否则不要开启它。该属性只在使用 Hikari 数 据库连接池时有用。(默认值: false 。)

DataSource

spring.datasource.name 数据源名称

spring.datasource.username 数据库登录用户名

spring.datasource.password 数据库登录密码

spring.datasource.url 数据库的 JDBC URL。

spring.datasource.jdbcurl 用来创建连接的 JDBC URL。

spring.datasource.driverclass-name JDBC 驱动的全限定类名。默认根据 URL 自动检测

spring.datasource.pool-name 连接池名称

spring.datasource.max-active 连接池中的最大活跃连接数。

spring.datasource.connectiontimeout连接超时单位毫秒)

spring.datasource.max-age 连接池中连接的最长寿命。

spring.datasource.max-idle 连接池中的最大空闲连接数。

spring.datasource.max-lifetime 连接池中连接的最长寿命(单位为毫秒)。

spring.datasource.max-openpreparedstatements 开启状态的 PreparedStatement 的数量上限。

spring.datasource.max-wait 连接池等待返回连接时,最长等待多少毫秒再抛出异常

spring.datasource.maximumpool-size 连接池能达到的最大规模,包含空闲连接的数量和使用中的连接数量。

spring.datasource.min-evictable-idle-time-millis 一个空闲连接被空闲连接释放器(如果存在的话)优雅地释放前,最短会在连接池里停 留多少时间

spring.datasource.min-idle 连接池里始终应该保持的最小连接数。(用于 DBCP 和 Tomcat 连接池。)

spring.datasource.minimum-idle: HikariCP 试图在连接池里维持的最小空闲连接数。

spring.datasource.alternate-usernameallowed 是否允许其它用户名

spring.datasource.autocommit 更新操作是否自动提交

spring.datasource.abandonwhenpercentage-full 一个百分比形势的阈值,超过该阈值关闭并报告被弃用的连接

spring.datasource.catalog 默认的 Catalog 名称

spring.datasource.commit-on-return 在连接归还时,连接池是否要提交挂起的事务

spring.datasource.connectioninitsql 在所有新连接创建时都会执行的 SQL 语句,该语句会在连接加入连接池前执行

spring.datasource.connectioninitsqls 在物理连接第一次创建时执行的 SQL 语句列表。(用于 DBCP 连接池。)

spring.datasource.connection-properties.[key] 设置创建连接时使用属性。(用于 DBCP 连接池。)

spring.datasource.continue-on-error 初始化数据库时发生错误不要终止。(默认值: false

spring.datasource.data 指向数据数据库操纵语言,Data Manipulation Language,DML)脚本资源引用

spring.datasource.data-source-class-name 用于获取连接的数据源的全限定类名

spring.datasource.data-source-jndi 用于获取连接的数据源的 JNDI 位置

spring.datasource.data-source-properties.[key] 设置创建数据源使用属性。(用于 Hikari 连接池。)

spring.datasource.dbproperties 设置创建数据源使用属性。(用于 Tomcat 连接池。)

spring.datasource.defaultautocommit 连接上的操作是否自动提交

spring.datasource.default-catalog 连接的默认 Catalog。

spring.datasource.defaultreadonly 连接的默认只读状态

spring.datasource.default-transactionisolation 连接的默认事务隔离级别

spring.datasource.fair-queue 是否以 FIFO 方式返回连接。

spring.datasource.health-check-properties.[key] 设置要纳入健康检查属性。(用于 Hikari 连接池。)

spring.datasource.idle-timeout 连接池中的连接能保持闲置状态的最长时间,单位为毫秒。(默认值: 10 。)

spring.datasource.ignoreexception-on-preload 初始化数据库连接池时是否要忽略连接。

spring.datasource.initsql在连接第一次创建时运行自定义查询

spring.datasource.initial-size 在连接池启动时要建立的连接数。

spring.datasource.initialization-fail-fast 在连接池创建时,如果达不到最小连接数是否要抛出异常。(默认值: true 。)

spring.datasource.initialize 使用 data.sql 初始化数据库。(默认值: true 。)

spring.datasource.isolate-internal-queries 是否要隔离内部请求。(默认值: false 。)

spring.datasource.jdbcinterceptors 一个分号分隔类名列表,这些类都扩展了 JdbcInterceptor 类。这些拦截器插入 java.sql.Connection 对象操作链里。(用于 Tomcat 连接池。)

spring.datasource.jmxenabled 开启 JMX 支持(如果底层连接池提供该功能的话)。(默认值: false 。)

spring.datasource.jndi-name 数据源的 JNDI 位置。设置了该属性忽略类、URL、用户名和密码属性。

spring.datasource.leak-detectionthreshold 用来检测 Hikari 连接池连接泄露阈值单位为毫秒。

spring.datasource.log-abandoned 是否针对弃用语句或连接的应用程序代码记录跟踪栈。用于 DBCP 连接池。(默认值: false 。)

spring.datasource.log-validationerrors 在使用 Tomcat 连接池时是否要记录验证错误。

spring.datasource.logintimeout 连接数据库超时时间(单位为秒)。

spring.datasource.numtestsper-eviction-run 空闲对象释放器线程(如果存在的话)每次运行时要检查对象数。

spring.datasource.platform 在 Schema 资源schema-${platform}.sql)里要使用的平台。(默认值: all 。)

spring.datasource.pool-preparedstatements 是否要将 Statement 放在池里。

spring.datasource.propagate-interrupt-state 对于等待连接的中断线程,是否要传播中断状态

spring.datasource.read-only 在使用 Hikari 连接池时将数据源设置为只读

spring.datasource.register-mbeans Hikari 连接池是否要注册 JMX MBean。

spring.datasource.remove-abandoned 被弃用的连接在到达弃用超时后是否应该移除

spring.datasource.remove-abandoned-timeout 连接在多少秒后应该考虑弃用。

spring.datasource.rollback-on-return 在连接归还连接池时,是否要回滚挂起的事务

spring.datasource.schema Schema数据定义语言,Data Definition Language,DDL)脚本资源引用

spring.datasource.separator SQL 初始化脚本里的语句分割符。(默认值: ; 。)

spring.datasource.sqlscript-encoding SQL 脚本编码

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.transactionisolation 在使用 Hikari 连接池时设置默认事务隔离级别

spring.datasource.usedisposable-connection-facade 连接是否要用一个门面(facade封装起来,在调用了 Connection.close() 后就不能 再使用这个连接了。

spring.datasource.use-equals比较方法名时是否使用 String.equals() 来代替 == 。

spring.datasource.use-lock操作连接对象时是否要加锁

spring.datasource.validationinterval 执行连接验证间隔时间,单位为毫秒。

spring.datasource.validationquery 在连接池里的连接返回给调用者或连接池时,要执行验证 SQL 查询

spring.datasource.validationquerytimeout 在连接验证查询执行失败前等待的超时时间,单位为秒。

spring.datasource.validationtimeout 在连接验证失败前等待的超时时间,单位为秒。(用于 Hikari 连接池。)

spring.datasource.validator-class-name 可选验证器类的全限定类名,用于执行测试查询。

spring.datasource.xa.data-source-class-name XA 数据源的全限定类名。

spring.datasource.xa.properties 要传递给 XA 数据源的属性。

FreeMarker

spring.freemarker.allowrequestoverride HttpServletRequest 的属性是否允许覆盖隐藏控制器生成的同名模型属性。

spring.freemarker.allow-session-override HttpSession 的属性是否允许覆盖隐藏控制器生成的同名模型属性。

spring.freemarker.cache 开启模板缓存

spring.freemarker.charset 模板编码

spring.freemarker.check-templatelocation 检查模板位置是否存在。

spring.freemarker.contenttype Content-Type 的值。

spring.freemarker.enabled 开启 FreeMarker 的 MVC 视图解析

spring.freemarker.expose-requestattributes 在模型合并模板前,是否要把所有的请求属性添加到模型里。

spring.freemarker.expose-session-attributes 在模型合并模板前,是否要把所有的 HttpSession 属性添加到模型里。

spring.freemarker.expose-spring-macro-helpers 是否发布供 Spring 宏程序库使用的 RequestContext ,并将命其名为 springMacro- RequestContext

spring.freemarker.prefer-filesystem-access 加载模板时优先通过文件系统访问文件系统访问能够实时检测到模板变更。(默认值: true 。)

spring.freemarker.prefix 在构建 URL 时添加视图名称前的前缀

spring.freemarker.requestcontext-attribute 在所有视图里使用的 RequestContext 属性的名称。

spring.freemarker.settings 要传递给 FreeMarker 配置的各种键。

spring.freemarker.suffix 在构建 URL 时添加视图名称后的后缀

spring.freemarker.templateloaderpath 模板路径列表,用逗号分隔。(默认值: [“classpath:/templates/”] 。)

spring.freemarker.viewnames解析视图名称的白名单

Groovy

spring.groovy.template.allowrequestoverride HttpServletRequest 的属性是否允许覆盖隐藏控制器生成的同名模型属性。

spring.groovy.template.allow-session-override HttpSession 的属性是否允许覆盖隐藏控制器生成的同名模型属性。

spring.groovy.template.cache 开启模板缓存

spring.groovy.template.charset 模板编码

spring.groovy.template.check-template-location 检查模板位置是否存在。

spring.groovy.template.configuration.auto-escape 模型变量在模板里呈现时是否要做转义。(默认值: false 。)

spring.groovy.template.configuration.auto-indent 模板是否要自动呈现缩进。(默认值: false 。)

spring.groovy.template.configuration.auto-indent-string 开启自动缩进时用于缩进字符串,可以是 SPACES ,也可以是 TAB 。(默认值: SPACES 。)

spring.groovy.template.configuration.autonewline 模板里是否要呈现新的空行。(默认值: false 。)

spring.groovy.template.configuration.base-template-class 模板基类

spring.groovy.template.configuration.cache-templates 模板是否应该缓存。(默认值: true 。)

spring.groovy.template.configuration.declaration-encoding 用来写声明头的编码

spring.groovy.template.configuration.expand-emptyelements 没有正文的元素该用短形式(例如, )还是扩展形式(例如, )来书 写。(默认值: false)

spring.groovy.template.configuration.locale 设置模板地域。

spring.groovy.template.configuration.new-line-string自动空行开启后用来呈现空行的字符串。(默认为系统的 line.separator 属性值。)

spring.groovy.template.configuration.resourceloaderpath Groovy 模板的路径。(默认值: classpath:/templates/ 。)

spring.groovy.template.configuration.use-double-quotes 属性是该用双引号还是单引号。(默认值: false 。)

spring.groovy.template.contenttype Content-Type 的值。

spring.groovy.template.enabled 开启 Groovy 模板的 MVC 视图解析

spring.groovy.template.expose-request-attributes 在模型合并到模板前,是否要把所有的请求属性添加到模型里。

spring.groovy.template.expose-session-attributes 在模型合并到模板前,是否要把所有的 HttpSession 属性添加到模型里。

spring.groovy.template.expose-spring-macro-helpers 是否发布供 Spring 宏程序库使用的 RequestContext ,并将其命名为 springMacro- RequestContext

spring.groovy.template.prefix 在构建 URL 时,添加到视图名称前的前缀

spring.groovy.template.request-context-attribute 所有视图里使用的 RequestContext 属性的名称。

spring.groovy.template.resource-loaderpath 模板路径(默认值: classpath:/ templates/ 。)

spring.groovy.template.suffix 在构建 URL 时,添加到视图名称后的后缀

spring.groovy.template.viewnames解析的视图名称白名单

H2

spring.h2.console.enabled 开启控制台。(默认值: false 。)

spring.h2.console.path 可以找到控制台的路径。(默认值: /h2-console 。)

Hornetq

spring.hornetq.embedded.clusterpassword 集群密码。默认在启动随机生成。

spring.hornetq.embedded.data-directory 日志文件目录。如果关闭持久功能则不需要该属性。

spring.hornetq.embedded.enabled 如果有 HornetQ 服务器 API,则开启嵌入模式。(默认值: true 。)

spring.hornetq.embedded.persistent 开启持久存储。(默认值: false 。)

spring.hornetq.embedded.queues 启动时要创建的队列列表,用逗号分隔。(默认值: [] 。)

spring.hornetq.embedded.server-id 服务器 ID。默认使用自增计数器。(默认值: 0 。)

spring.hornetq.embedded.topics 启动时要创建的主题列表,用逗号分隔。(默认值: [] 。)

spring.hornetq.host HornetQ 的主机。(默认值: localhost 。)

spring.hornetq.mode HornetQ 的部署模式,默认为自动检测。可以显式地设置为 nativeembedded 。

spring.hornetq.port HornetQ 的端口。(默认值: 5445 。)

Http

spring.http.converters.preferred-jsonmapper HTTP 消息转换优先使用 JSON 映射器。

spring.http.encoding.charset HTTP 请求和响应字符集。如果没有显式指定 Content-Type 头,则将该属性值作为 这个头的值。(默认值: UTF-8 。)

spring.http.encoding.enabled 开启 HTTP 编码支持。(默认值: true 。)

spring.http.encoding.force 强制将 HTTP 请求和响应编码为所配置字符集。(默认值: true 。)

Jackson

spring.jackson.dateformat 日期格式字符串yyyy-MM-dd HH:mm:ss)或日期格式类的全限定类名。

spring.jackson.deserialization 影响 Java 对象序列化的 Jackson on/off 特性

spring.jackson.generator 用于生成器的 Jackson on/off 特性

spring.jackson.joda-date-time-format Joda 日期时间格式字符串yyyy-MM-dd HH:mm:ss)。如果没有配置,而 date-format 又配置了一个格式字符串的话,会将它作为降级配置。

spring.jackson.locale 用于格式化的地域值。

spring.jackson.mapper Jackson 的通用 on/off 特性

spring.jackson.parser 用于解析器的 Jackson on/off 特性

spring.jackson.property-naming-strategy Jackson 的 PropertyNamingStrategy 中的一个常量( CAMEL_CASE_TO_LOWERCASE WITH_UNDERSCORES )。也可以设置 PropertyNamingStrategy 的子类的全限定类名。

spring.jackson.serialization 影响 Java 对象序列化的 Jackson on/off 特性

spring.jackson.serialization-inclusion 控制序列化时要包含哪些属性。可选择 Jackson 的 JsonInclude.Include 枚举里的某个值。

spring.jackson.time-zone 格式化日期时使用的时区。可以配置各种可识别时区标识符,比如 America/Los_ Angeles 或者 GMT+10 。

Jersey

spring.jersey.filter.order Jersey 过滤器链的顺序。(默认值: 0 。)

spring.jersey.init 通过 Servlet 或过滤器传递给 Jersey 的初始化参数。

spring.jersey.type Jersey 集成类型。可以是 servlet 或者 filter

Jms

spring.jms.jndi-name 连接工厂的 JNDI 名字。设置了该属性,则优先于其他自动配置的连接工厂

spring.jms.listener.acknowledge-mode 容器的应答模式(acknowledgment mode)。默认情况下,监听器使用自动应答。

spring.jms.listener.autostartup 启动自动启动容器。(默认值: true 。)

spring.jms.listener.concurrency 并发消费者的数量下限。

spring.jms.listener.max-concurrency 并发消费者的数量上限。

spring.jms.pub-sub-domain 如果是主题而非队列,指明默认的目的地类型是否支持 Pub/Sub。(默认值: false 。)

Jmx

spring.jmx.default-domain JMX 域名

spring.jmx.enabled管理 Bean 发布到 JMX 域里。(默认值: true 。)

spring.jmx.server MBeanServer 的 Bean 名称。(默认值: mbeanServer 。)

Jpa

spring.jpa.database操作目标数据库,默认自动检测。也可以通过 databasePlatform 属性进行设置。

spring.jpa.database-platform 要操作的目标数据库,默认自动检测。也可以通过 Database 枚举来设置。

spring.jpa.generate-ddl 启动时要初始化 Schema。(默认值: false 。)

spring.jpa.hibernate.ddlauto DDL 模式( nonevalidateupdatecreatecreatedrop )。这是 hibernate. hbm2ddl.auto 属性的一个快捷方式。在使用嵌入式数据库时,默认为 createdrop , 其他情况下默认为 none

spring.jpa.hibernate.naming-strategy Hibernate 命名策略的全限定类名。

spring.jpa.open-in-view 注册 OpenEntityManagerInViewInterceptor ,在请求的整个处理过程中,将一个 JPA EntityManager 绑定线程上。(默认值: true)

spring.jpa.propertiesJPA 提供方要设置的额外原生属性。

spring.jpa.show-sql 在使用 Bitronix Transaction Manager 时打开 SQL 语句日志。(默认值: false 。)

Jta

spring.jta.allowmultiple-lrc 在使用 Bitronix Transaction Manager 时,事务管理器是否应该允许一个事务涉及多个 LRC 资源。(默认值: false)

spring.jta.asynchronous2-pc 在使用 Bitronix Transaction Manager 时,是否异步执行阶段提交。(默认值: false 。)

spring.jta.backgroundrecoveryinterval在使用 Bitronix Transaction Manager 时,多久运行一次恢复过程,单位为分钟。(默认值: 1 )

spring.jta.backgroundrecovery-interval-seconds 在使用 Bitronix Transaction Manager 时,多久运行一次恢复过程,单位为秒。(默认值: 60 )

spring.jta.currentnode-only-recovery 在使用 Bitronix Transaction Manager 时,恢复是否要滤除不包含本 JVM 唯一 ID 的 XID。(默认值: true )

spring.jta.debugzeroresource-transaction 在使用 Bitronix Transaction Manager 时,对于没有涉及任何资源的事务,是否要跟踪并记 录它们的创建和提交调用栈。(默认值: false)

spring.jta.default-transaction-timeout 在使用 Bitronix Transaction Manager 时,默认的事务超时时间,单位为秒。(默认值: 60 。)

spring.jta.disable-jmx 在使用 Bitronix Transaction Manager 时,是否要禁止注册 JMX MBean。(默认值: false 。)

spring.jta.enabled 开启 JTA 支持。(默认值: true 。)

spring.jta.exceptionanalyzer 在使用 Bitronix Transaction Manager 时用到异常分析器。设置为 null 时使用默认异常分析器,也可以设置自定义异常分析器的全限定类名。

spring.jta.filter-log-status 在使用 Bitronix Transaction Manager 时,是否只记录必要的日志。开启该参数时能减少分 段(fragment空间用量,但调试复杂了。(默认值: false)

spring.jta.force-batching-enabled 在使用 Bitronix Transaction Manager 时,是否批量输出磁盘。禁用批处理会严重降低事 务管理器吞吐量。(默认值: true 。)

spring.jta.forced-write-enabled 在使用 Bitronix Transaction Manager 时,日志是否强制写到磁盘上。在生产环境里不要设 置为 false ,因为不强制写到磁盘上无法保证完整性。(默认值: true)

spring.jta.graceful-shutdowninterval 在使用 Bitronix Transaction Manager 时,要关闭的话,事务管理器在放弃事务前最多等它 多少秒。(默认值: 60)

spring.jta.jndi-transaction-synchronization-registry-name 在使用 Bitronix Transaction Manager 时,事务同步注册表应该绑定到哪个 JNDI 下。(默认 值: java:comp/TransactionSynchronizationRegistry)

spring.jta.jndiuser-transaction-name 在使用 Bitronix Transaction Manager 时,用户事务应该绑定到哪个 JNDI 下。(默认值: java:comp/UserTransaction 。)

spring.jta.journal 在使用 Bitronix Transaction Manager 时,要用的日志名。可以是 disknull 或者全限定类 名。(默认值: disk 。)

spring.jta.log-dir 事务日志目录

spring.jta.log-part1-filename 日志分段文件 1 的名称。(默认值: btm1.tlog 。)

spring.jta.log-part2-filename 日志分段文件 2 的名称。(默认值: btm2.tlog 。)

spring.jta.max-log-size-in-mb 在使用 Bitronix Transaction Manager 时,日志分段文件的最大兆数。日志越大,事务就被 允许在未终结状态停留越长时间。但是,如果文件大小限制得太小,事务管理器在分段 满了的时候就会暂停更长时间。(默认值: 2 。)

spring.jta.resource-configuration-filename Bitronix Transaction Manager 的配置文件名。

spring.jta.server-id 唯一标识 Bitronix Transaction Manager 实例的 ID。

spring.jta.skip-corrupted-logs 是否跳过损坏的日志文件。(默认值: false 。)

spring.jta.transaction-managerid 事务管理器的唯一标识符。

spring.jta.warn-about-zeroresource-transaction 在使用 Bitronix Transaction Manager 时,是否要对执行没有涉及任何资源的事务作出告 警。(默认值: true 。)

Mail

spring.mail.default-encoding 默认的 MimeMessage 编码。(默认值: UTF-8 。)

spring.mail.host SMTP 服务器主机地址

spring.mail.jndi-name会话的 JNDI 名称。设置之后,该属性的优先级要高于其他邮件设置。

spring.mail.password SMTP 服务器的登录密码。

spring.mail.port SMTP 服务器端口号

spring.mail.properties 附加的 JavaMail 会话属性。

spring.mail.protocol SMTP 服务用到协议。(默认值: smtp 。)

spring.mail.test-connection 在启动时测试邮件服务器是否可用。(默认值: false 。)

spring.mail.username SMTP 服务器的登录用户名。

Messages

spring.messages.basename 逗号分隔的基本名称列表,都遵循 ResourceBundle 的惯例。本质上这就是一个全限定 的 Classpath 位置,如果不包含包限定符(比如 org.mypackage ),就会从 Classpath 的根部开始解析。(默认值: messages 。)

spring.messages.cache-seconds 加载的资源包文件的缓存失效时间,单位为秒。在设置为 -1 时,包会永远缓存。(默认值: -1 。)

spring.messages.encoding消息包的编码。(默认值: UTF-8 。)

Mobile

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 添加到平板设备视图名后的后缀。

spring.mobile.sitepreference.enabled 开启 SitePreferenceHandler 。(默认值: true 。)

Mongodb

spring.mongodb.embedded.features要开启的特性列表,用逗号分隔。

spring.mongodb.embedded.version 要使用的 Mongo 版本。(默认值: 2.6.10 。)

Mustache

spring.mustache.cache 开启模板缓存。

spring.mustache.charset 模板编码

spring.mustache.check-template-location 检查模板位置是否存在。

spring.mustache.contenttype Content-Type 的值。

spring.mustache.enabled 开启 Mustache 的 MVC 视图解析

spring.mustache.prefix添加到模板名前的前缀。(默认值: classpath:/ templates/ 。)

spring.mustache.suffix 添加到模板名后的后缀。(默认值: .html 。)

spring.mustache.view-names解析的视图名称的白名单。

Mvc

spring.mvc.async.requesttimeout 异步请求处理超时前的等待时间(单位为毫秒)。如果没有设置该属性,则使用底层实现 的默认超时时间,比如,Tomcat 上使用 Servlet 3 时超时时间为 10 秒。

spring.mvc.date-format 要使用的日期格式(比如 dd/MM/yyyy )。

spring.mvc.favicon.enabled 开启 favicon.ico 的解析。(默认值: true 。)

spring.mvc.ignore-default-model-on-redirect重定向场景下,是否要忽略“默认”模型对象内容。(默认值: true 。)

spring.mvc.locale 要使用的地域配置。

spring.mvc.messagecodes-resolver-format 消息代码格式( PREFIX_ERROR_CODE 、 POSTFIX_ERROR_CODE )。

spring.mvc.view.prefix Spring MVC 视图前缀

spring.mvc.view.suffix Spring MVC 视图后缀。

Mybatis

mybatis.mapperlocations mybatis 映射文件位置。
mybatis.typealiases-package 别名包位置。

Rabbitmq

spring.rabbitmq.addresses 客户端应该连接的地址列表,用逗号分隔。

spring.rabbitmq.dynamic 创建一个 AmqpAdmin Bean。(默认值: true 。)

spring.rabbitmq.host RabbitMQ 主机地址。(默认值: localhost 。)

spring.rabbitmq.listener.acknowledgemode 容器的应答模式。

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 RabbitMQ 端口。(默认值: 5672 。)

spring.rabbitmq.requested-heartbeat 请求心跳超时,单位为秒; 0 表示不启用心跳。

spring.rabbitmq.ssl.enabled 开启 SSL 支持。(默认值: false 。)

spring.rabbitmq.ssl.keystore 持有 SSL 证书的 KeyStore 路径。

spring.rabbitmq.ssl.keystorepassword 访问 KeyStore 的密码。

spring.rabbitmq.ssl.truststore 持有 SSL 证书的 TrustStore。

spring.rabbitmq.ssl.truststorepassword 访问 TrustStore 的密码。

spring.rabbitmq.username 进行身份验证用户名。

spring.rabbitmq.virtual-host 在连接 RabbitMQ 时的虚拟主机

Redis

spring.redis.database 连接工厂使用的数据库索引。(默认值: 0 。)

spring.redis.host Redis 服务器主机地址。(默认值: localhost 。)

spring.redis.passwordRedis 服务器的登录密码。

spring.redis.pool.max-active连接池在指定时间里能分配最大连接数。负数表示限制。(默认值: 8 。)

spring.redis.pool.max-idle 连接池里的最大空闲连接数。负数表示空闲连接数可以是无限大。(默认值: 8 。)

spring.redis.pool.max-wait当连接池被耗尽时,分配连接的请求应该在抛出异常前被阻塞多长时间(单位为秒)。负 数表示一直阻塞。(默认值: -1 。)

spring.redis.pool.min-idle 连接池里要维持的最小空闲连接数。该属性只有在设置为正数时才有效。(默认值: 0 。)

spring.redis.port Redis 服务器端口。(默认值: 6379 。)

spring.redis.sentinel.master Redis 服务器的名字

spring.redis.sentinel.nodes形如“主机: 端口配对的列表,用逗号分隔。

spring.redis.timeout 连接超时时间,单位为秒。(默认值: 0 。)

Resources

spring.resources.addmappings 开启默认资源处理。(默认值: true 。)

spring.resources.cache-period 资源处理器对资源的缓存周期,单位为秒。

spring.resources.chain.cache 对资源链开启缓存。(默认值: true 。)

spring.resources.chain.enabled 开启 Spring 资源处理链。(默认关闭的,除非至少开启了一个策略。)

spring.resources.chain.htmlapplication-cache 开启 HTML5 应用程序存证重写。(默认值: 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.staticlocations 静态资源位置。默认为 classpath: [/META-INF/resources/, /resources/, /static/, /public/] 加上 context:/(Servlet 上下文的根目录)。

SendGrid

spring.sendgrid.password SendGrid 密码。

spring.sendgrid.proxy.host SendGrid 代理主机地址

spring.sendgrid.proxy.port SendGrid 代理端口

spring.sendgrid.username SendGrid 用户名。

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 应用程序的密钥。

Thymeleaf

spring.thymeleaf.cache开启模板缓存。(默认值: true 。)

spring.thymeleaf.check-template-location 检查模板位置是否存在。(默认值: true 。)

spring.thymeleaf.content-type Content-Type 的值。(默认值: text/html 。)

spring.thymeleaf.enabled 开启 MVC Thymeleaf 视图解析。(默认值: true 。)

spring.thymeleaf.encoding模板编码。(默认值: UTF-8 。)

spring.thymeleaf.excluded-view-names 要被排除在解析之外的视图名称列表,用逗号分隔。

spring.thymeleaf.mode 要运用于模板之上的模板模式。另见 StandardTemplate- ModeHandlers 。(默认值: HTML5 。)

spring.thymeleaf.prefix 在构建 URL 时添加到视图名称前的前缀。(默认值: classpath:/templates/ 。)

spring.thymeleaf.suffix 在构建 URL 时添加到视图名称后的后缀。(默认值: .html 。)

spring.thymeleaf.template-resolver-order Thymeleaf 模板解析器解析器链中的顺序。默认情况下,它排在第一位。顺序从 1 开始只有在定义额外的 TemplateResolver Bean 时才需要设置这个属性。

spring.thymeleaf.view-names 可解析的视图名称列表,用逗号分隔。

Velocity

spring.velocity.allowrequest-override HttpServletRequest 的属性是否允许覆盖隐藏控制器生成的同名模型属性。

spring.velocity.allow-session-override HttpSession` 的属性是否允许覆盖隐藏控制器生成的同名模型属性。

spring.velocity.cache 开启模板缓存。

spring.velocity.charset 模板编码。

spring.velocity.check-template-location 检查模板位置是否存在。

spring.velocity.content-type Content-Type 的值。

spring.velocity.date-tool-attribute DateTool 辅助对象在视图的 Velocity 上下文里呈现名字

spring.velocity.enabled 开启 Velocity 的 MVC 视图解析。

spring.velocity.expose-request-attributes 在模型合并到模板前,是否要把所有的请求属性添加到模型里。

spring.velocity.expose-session-attributes 在模型合并到模板前,是否要把所有的 HttpSession 属性添加到模型里。

spring.velocity.expose-spring-macro-helpers 是否发布供 Spring 宏程序库使用的 RequestContext ,并将其名命为 springMacro- RequestContext

spring.velocity.numbertool-attribute NumberTool 辅助对象在视图的 Velocity 上下文里呈现名字

spring.velocity.prefer-filesystem-access 加载模板时优先通过文件系统访问文件系统访问能够实时检测到模板变更。(默认值: true 。)

spring.velocity.prefix在构建 URL 时添加到视图名称前的前缀。

spring.velocity.properties 额外的 Velocity 属性。

spring.velocity.request-context-attribute所有视图里使用的 Request- Context 属性的名称。

spring.velocity.resource-loader-path 模板路径。(默认值: classpath:/ templates/ 。)

spring.velocity.suffix 在构建 URL 时添加到视图名称后的后缀。

spring.velocity.toolbox-config-location Velocity Toolbox 的配置位置,比如 /WEB-INF/toolbox.xml。自动加载 Velocity Tools 工具定 义文件,将所定义的全部工具发布到指定的作用域内。

spring.velocity.view-names可解析的视图名称白名单。

View

spring.view.prefix Spring MVC 视图前缀。

spring.view.suffixSpring MVC 视图后缀。

其它

spring.aop.auto 添加 @EnableAspectJAutoProxy(默认:true)

spring.application.admin.enabled开启应用程序管理功能 (默认:false)

spring.artemis.embedded.clusterpassword 集群密码。默认在启东市随机生成

spring.artemis.embedded.persistent开启持久存储 (默认:false)

spring.autoconfigure.exclude 要排除的自动配置类
————————————————
版权声明:本文为CSDN博主「荆楚大虾」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明
原文链接:https://blog.csdn.net/FanErZong/article/details/94484646

原文地址:https://blog.csdn.net/duagh7/article/details/134706649

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任

如若转载,请注明出处:http://www.7code.cn/show_22896.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注