SpringBoot配置文件application.properties常用配置彙總

在接觸springboot時,不知道怎麼去配置一些項目中需要的配置,比如數據源、tomcat調優、端口等等,配置文件也比較多。

項目中常用的配置:

# 服務器HTTP端口,也就是Tomcat的監聽端口(常用的以後會慢慢總結提取出來):
server.port= 8080

 

更多項目中配置信息彙總如下:

# ----------------------------------------
# 核心屬性
# ----------------------------------------

# 文件編碼
banner.charset= UTF-8
# 文件位置
banner.location= classpath:banner.txt

# 日誌配置
# 日誌配置文件的位置。 例如對於Logback的'classpath:logback.xml'
logging.config= 
# %wEx#記錄異常時使用的轉換字。
logging.exception-conversion-word= 
# 日誌文件名。 例如`myapp.log`
logging.file= 
# 日誌級別嚴重性映射。 例如`logging.level.org.springframework =  DEBUG`
logging.level.*= 
# 日誌文件的位置。 例如`/ var / log`
logging.path= 
# 用於輸出到控制檯的Appender模式。 只支持默認的logback設置。
logging.pattern.console= 
# 用於輸出到文件的Appender模式。 只支持默認的logback設置。
logging.pattern.file= 
# 日誌級別的Appender模式(默認%5p)。 只支持默認的logback設置。
logging.pattern.level= 
#註冊日誌記錄系統的初始化掛鉤。
logging.register-shutdown-hook= false

# AOP 切面
# 添加@EnableAspectJAutoProxy。
spring.aop.auto= true
# 是否要創建基於子類(CGLIB)的代理(true),而不是基於標準的基於Java接口的代理(false)。
spring.aop.proxy-target-class= false

# 應用程序上下文初始化器
# 應用指標。
spring.application.index= 
# 應用程序名稱。
spring.application.name= 

# 國際化(消息源自動配置)
spring.messages.basename= messages
# 以逗號分隔的基礎名稱列表,每個都在ResourceBundle約定之後。
# 加載的資源束文件緩存到期,以秒爲單位。 設置爲-1時,軟件包將永久緩存。
spring.messages.cache-seconds= -1
# 消息編碼。
spring.messages.encoding= UTF-8
# 設置是否返回到系統區域設置,如果沒有找到特定語言環境的文件。
spring.messages.fallback-to-system-locale= true

# REDIS (Redis 配置)
# 連接工廠使用的數據庫索引。
spring.redis.database= 0
# Redis服務器主機。
spring.redis.host= localhost
# 登錄redis服務器的密碼。
spring.redis.password= 
# 給定時間池可以分配的最大連接數。 使用負值爲無限制。
spring.redis.pool.max-active= 8
# 池中“空閒”連接的最大數量。 使用負值來表示無限數量的空閒連接。
spring.redis.pool.max-idle= 8
# 連接分配在池耗盡之前在拋出異常之前應阻止的最大時間量(以毫秒爲單位)。 使用負值無限期地阻止。
spring.redis.pool.max-wait= -1
# 定義池中維護的最小空閒連接數。 此設置只有在正值時纔有效果。
spring.redis.pool.min-idle= 0
# redis服務器端口
spring.redis.port= 6379
# redis服務器名稱
spring.redis.sentinel.master=

spring.redis.sentinel.nodes= 
# 連接超時(毫秒)。
spring.redis.timeout= 0

# 管理員 (Spring應用程序管理員JMX自動配置)
# 開啓應用管理功能。
spring.application.admin.enabled= false
# JMX應用程序名稱MBean。
spring.application.admin.jmx-name= org.springframework.boot:type= Admin,name= SpringApplication

# 自動配置
# 自動配置類排除。
spring.autoconfigure.exclude= 

# spring 核心配置
# 跳過搜索BeanInfo類。
spring.beaninfo.ignore= true

# spring 緩存配置
# 由底層緩存管理器支持的要創建的緩存名稱的逗號分隔列表。
spring.cache.cache-names= 
# 用於初始化EhCache的配置文件的位置。
spring.cache.ehcache.config= 
# 用於創建緩存的規範。 檢查CacheBuilderSpec有關規格格式的更多細節。
spring.cache.guava.spec= 
# 用於初始化Hazelcast的配置文件的位置。
spring.cache.hazelcast.config= 
# 用於初始化Infinispan的配置文件的位置。
spring.cache.infinispan.config= 
# 用於初始化緩存管理器的配置文件的位置。
spring.cache.jcache.config= 
# 用於檢索符合JSR-107的緩存管理器的CachingProvider實現的完全限定名稱。 只有在類路徑上有多個JSR-107實現可用時才需要。
spring.cache.jcache.provider= 
# 緩存類型,默認情況下根據環境自動檢測。
spring.cache.type= 

# spring配置 (配置文件應用偵聽器)
# 配置文件位置。
spring.config.location= 
# 配置文件名。
spring.config.name= application

# hazelcast配置(Hazelcast是一個高度可擴展的數據分發和集羣平臺,提供了高效的、可擴展的分佈式數據存儲、數據緩存.)
# 用於初始化Hazelcast的配置文件的位置。
spring.hazelcast.config= 

# JMX
# JMX域名。
spring.jmx.default-domain= 
# 將管理bean暴露給JMX域。
spring.jmx.enabled= true
# MBean服務器bean名稱。
spring.jmx.server= mbeanServer

# Email (MailProperties)  郵件屬性
# 默認MimeMessage編碼。
spring.mail.default-encoding= UTF-8
# SMTP服務器主機。 例如`smtp.example.com`
spring.mail.host= 
# 會話JNDI名稱。 設置時,優先於其他郵件設置。
spring.mail.jndi-name= 
# 登錄SMTP服務器的密碼。
spring.mail.password= 
# SMTP服務器端口。
spring.mail.port= 
# 其他JavaMail會話屬性。
spring.mail.properties.*= 
# SMTP服務器使用的協議。
spring.mail.protocol= smtp
# 測試郵件服務器在啓動時可用。
spring.mail.test-connection= false
# 登錄SMTP服務器的用戶。
spring.mail.username= 

# 應用設置(spring應用)
# 用於在應用程序運行時顯示橫幅的模式。
spring.main.banner-mode= console
# 源(類名,包名或XML資源位置)包含在ApplicationContext中。
spring.main.sources= 
# 在Web環境中運行應用程序(默認情況下自動檢測)。
spring.main.web-environment= 

# 文件編碼(文件編碼應用程序偵聽器)
# 應用程序使用的預期字符編碼。
spring.mandatory-file-encoding= 

# 輸出
# 配置ANSI輸出(可以是“detect”,“always”,“never”)-->“檢測”,“永遠”,“從不”
spring.output.ansi.enabled= detect

# PID文件(應用程序文件寫入器)
# 如果使用ApplicationPidFileWriter但是無法寫入PID文件,則失敗。
spring.pid.fail-on-write-error= 
# 要寫入的PID文件的位置(如果使用ApplicationPidFileWriter)。
spring.pid.file= 

#   簡介(profiles 這個單詞翻譯過來就是這樣... 沒用過這個屬性,有哪位大神用過請留言我改正,感謝。)
# 活動配置文件的逗號分隔列表。
spring.profiles.active= 
# 無條件地激活指定的逗號分隔的配置文件。
spring.profiles.include= 

# SendGrid(SendGrid自動配置)
# SendGrid帳號用戶名
spring.sendgrid.username= 
# SendGrid帳號密碼
spring.sendgrid.password= 
# SendGrid代理主機
spring.sendgrid.proxy.host= 
# SendGrid代理端口
spring.sendgrid.proxy.port= 

# ----------------------------------------
#   WEB屬性
# ----------------------------------------

# 文件上傳屬性
# 啓用對文件上傳的支持。
multipart.enabled= true
# 將文件寫入磁盤後的閾值。 值可以使用後綴“MB”或“KB”表示兆字節或千字節大小。
multipart.file-size-threshold= 0
# 上傳文件的位置。
multipart.location= 
# 最大文件大小。 值可以使用後綴“MB”或“KB”表示兆字節或千字節大小。
multipart.max-file-size= 1Mb
# 最大請求大小。 值可以使用後綴“MB”或“KB”表示兆字節或千字節大小。
multipart.max-request-size= 10Mb

# 嵌入式服務器配置(服務器屬性)
# 服務器應綁定到的網絡地址。
server.address= 
# 如果啓用響應壓縮。
server.compression.enabled= false
# 從壓縮中排除的用戶代理列表。
server.compression.excluded-user-agents= 
# 應該壓縮的MIME類型的逗號分隔列表。 例如`text / html,text / css,application / json`
server.compression.mime-types= 
# 執行壓縮所需的最小響應大小。 例如2048
server.compression.min-response-size= 
# Servlet上下文初始化參數。 例如`server.context-parameters.a =  alpha`
server.context-parameters.*= 
# 應用程序的上下文路徑。
server.context-path= 
# 顯示應用程序的名稱。
server.display-name= application
# 何時包含“stacktrace”屬性。
server.error.include-stacktrace= never
# 錯誤控制器的路徑。
server.error.path= /error
# 啓動瀏覽器中出現服務器錯誤時顯示的默認錯誤頁面。
server.error.whitelabel.enabled= true
# JSP servlet的類名。
server.jsp-servlet.class-name= org.apache.jasper.servlet.JspServlet
# Init參數用於配置JSP servlet
server.jsp-servlet.init-parameters.*= 
# JSP servlet是否被註冊
server.jsp-servlet.registered= true
# 服務器HTTP端口。
server.port= 8080
# 主調度程序servlet的路徑。
server.servlet-path= /
# 會話cookie的註釋。
server.session.cookie.comment= 
# 會話cookie的域。
server.session.cookie.domain= 
# “HttpOnly”標誌爲會話cookie。
server.session.cookie.http-only= 
# 會話cookie的最大時長(以秒爲單位)。
server.session.cookie.max-age= 
# 會話cookie名稱。
server.session.cookie.name= 
# 會話cookie的路徑。
server.session.cookie.path= 
# 會話cookie的“安全”標誌。
server.session.cookie.secure= 
# 重啓之間持續會話數據。
server.session.persistent= false
# 用於存儲會話數據的目錄。
server.session.store-dir= 
# 會話超時(秒)。
server.session.timeout= 
# 會話跟蹤模式(以下一個或多個:“cookie”,“url”,“ssl”)。
server.session.tracking-modes= 
# 支持SSL密碼。
server.ssl.ciphers= 
# 客戶端認證是否需要(“want”)或需要(“need”)。 需要信任存儲。
server.ssl.client-auth= 
# ssl配置
server.ssl.enabled= 
server.ssl.key-alias= 
server.ssl.key-password= 
server.ssl.key-store= 
server.ssl.key-store-password= 
server.ssl.key-store-provider= 
server.ssl.key-store-type= 
server.ssl.protocol= 
server.ssl.trust-store= 
server.ssl.trust-store-password= 
server.ssl.trust-store-provider= 
server.ssl.trust-store-type= 
# 創建日誌文件的目錄。 可以相對於tomcat base dir或absolute。
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
# 在調用backgroundProcess方法之間延遲秒。
server.tomcat.background-processor-delay= 30
# Tomcat基本目錄。 如果未指定,將使用臨時目錄。
server.tomcat.basedir= 
# 正則表達式匹配可信IP地址。
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}
# HTTP消息頭的最大大小(以字節爲單位)。
server.tomcat.max-http-header-size= 0
# 最大工作線程數。
server.tomcat.max-threads= 0
# 用於覆蓋原始端口值的HTTP頭的名稱。
server.tomcat.port-header= X-Forwarded-Port
# 頭文件,保存傳入協議,通常命名爲“X-Forwarded-Proto”。
server.tomcat.protocol-header= 
# 表示傳入請求使用SSL的協議頭的值。
server.tomcat.protocol-header-https-value= https
# 提取遠程ip的HTTP頭的名稱。 例如`X-FORWARDED-FOR`
server.tomcat.remote-ip-header= 
# 用於解碼URI的字符編碼。
server.tomcat.uri-encoding= UTF-8
# 訪問日誌目錄。
server.undertow.accesslog.dir= 
# 啓用訪問日誌。
server.undertow.accesslog.enabled= false
# 訪問日誌的格式化模式。
server.undertow.accesslog.pattern= common
# 每個緩衝區的大小字節數。
server.undertow.buffer-size= 
# 每個區域的緩衝區數。
server.undertow.buffers-per-region= 
# 在Java堆之外分配緩衝區。
server.undertow.direct-buffers= 
# 爲工作者創建的I / O線程數。
server.undertow.io-threads= 
# 工作線程數。
server.undertow.worker-threads= 
# 如果X-Forwarded- *頭應該應用於HttpRequest。
server.use-forward-headers= 

# 自由標記(自由標記自動配置)
# 設置是否允許HttpServletRequest屬性重寫(隱藏)控制器生成的同名模型屬性。
spring.freemarker.allow-request-override= false
# 設置是否允許HttpSession屬性重寫(隱藏)控制器生成的相同名稱的模型屬性。
spring.freemarker.allow-session-override= false
# 啓用模板緩存。
spring.freemarker.cache= false
# 模板編碼。
spring.freemarker.charset= UTF-8
# 檢查模板位置是否存在。
spring.freemarker.check-template-location= true
# Content-Type值。
spring.freemarker.content-type= text/html
# 啓用此技術的MVC視圖分辨率。
spring.freemarker.enabled= true
# 設置在與模板合併之前是否應將所有請求屬性添加到模型中。
spring.freemarker.expose-request-attributes= false
# 設置在與模板合併之前是否應將所有HttpSession屬性添加到模型中。
spring.freemarker.expose-session-attributes= false
# 設置是否公開一個RequestContext供Spring 的宏庫使用,名稱爲“springMacroRequestContext”。
spring.freemarker.expose-spring-macro-helpers= true
# 首選文件系統訪問模板加載。 文件系統訪問可以對模板更改進行熱檢測。
spring.freemarker.prefer-file-system-access= true
# 前綴,在構建URL時先查看名稱。
spring.freemarker.prefix= 
# 所有視圖的RequestContext屬性的名稱。
spring.freemarker.request-context-attribute= 
# 公開的FreeMarker密鑰將被傳遞給FreeMarker的配置。
spring.freemarker.settings.*= 
# 後綴,在構建URL時附加到查看名稱。
spring.freemarker.suffix= 
# 逗號分隔的模板路徑列表。
spring.freemarker.template-loader-path= classpath:/templates/
# 可以解決的視圖名稱的白名單。
spring.freemarker.view-names= 

# groovr模板(Groovy模板自動配置)
# 設置是否允許HttpServletRequest屬性重寫(隱藏)控制器生成的同名模型屬性。
spring.groovy.template.allow-request-override= false
# 設置是否允許HttpSession屬性重寫(隱藏)控制器生成的相同名稱的模型屬性。
spring.groovy.template.allow-session-override= false
# 啓用模板緩存。
spring.groovy.template.cache= 
# 模板編碼。
spring.groovy.template.charset= UTF-8
# 檢查模板位置是否存在。
spring.groovy.template.check-template-location= true
# 請參閱GroovyMarkupConfigurer
spring.groovy.template.configuration.*= 
# Content-Type值。
spring.groovy.template.content-type= test/html
# 啓用此技術的MVC視圖分辨率。
spring.groovy.template.enabled= true
# 設置在與模板合併之前是否應將所有請求屬性添加到模型中。
spring.groovy.template.expose-request-attributes= false
# 設置在與模板合併之前是否應將所有HttpSession屬性添加到模型中。
spring.groovy.template.expose-session-attributes= false
# 設置是否公開一個RequestContext供Spring Spring的宏庫使用,名稱爲“springMacroRequestContext”。
spring.groovy.template.expose-spring-macro-helpers= true
# 前綴,在構建URL時先查看名稱。
spring.groovy.template.prefix= 
# 所有視圖的RequestContext屬性的名稱。
spring.groovy.template.request-context-attribute= 
# 模板路徑。
spring.groovy.template.resource-loader-path= classpath:/templates/
# 後綴,在構建URL時附加到查看名稱。
spring.groovy.template.suffix= .tpl
# 可以解決的視圖名稱的白名單。
spring.groovy.template.view-names= 

# spring Hateoas 配置
# 指定應用程序/ hal + json響應是否應發送到接受application / json的請求。
spring.hateoas.use-hal-as-default-json-media-type= true

# HTTP 消息轉換
# 首選JSON映射程序用於HTTP消息轉換。 設置爲“gson”強制使用Gson,當它和Jackson都在類路徑上時。
spring.http.converters.preferred-json-mapper= jackson

# HTTP 編碼(Http編碼屬性)
# HTTP請求和響應的字符集。 如果未明確設置,則添加到“Content-Type”頭。
spring.http.encoding.charset= UTF-8
# 啓用http編碼支持。
spring.http.encoding.enabled= true
# 將編碼強制到HTTP請求和響應上配置的字符集。
spring.http.encoding.force= true

# Jackson(解析json和序列化json) 配置
# 日期格式字符串或全限定日期格式類名。 例如`yyyy-MM-dd HH:mm:ss`。
spring.jackson.date-format= 
# Jones開/關功能,影響Java對象反序列化的方式。
spring.jackson.deserialization.*= 
# 關閉或者打開Jackson 功能
spring.jackson.generator.*= 
# Joda日期時間格式字符串。 如果未配置,如果配置了格式字符串,則“日期格式”將用作後備。
spring.jackson.joda-date-time-format= 
# 用於格式化的區域設置。
spring.jackson.locale= 
# jackson通用開/關功能。
spring.jackson.mapper.*= 
# Jackson 解析器的開/關功能。
spring.jackson.parser.*= 
# Jackson的PropertyNamingStrategy的一個常量。 也可以是PropertyNamingStrategy子類的完全限定類名。
spring.jackson.property-naming-strategy= 
# Jones開/關功能,影響Java對象序列化的方式。
spring.jackson.serialization.*= 
# 控制在序列化期間包含屬性。 配置了Jackson的JsonInclude.Include枚舉中的一個值。
spring.jackson.serialization-inclusion= 
# 格式化日期時使用的時區。 例如`America / Los_Angeles`
spring.jackson.time-zone= 

# Jersey 配置
# 作爲應用程序的基本URI的路徑。 如果指定,則覆蓋“@ApplicationPath”的值。
spring.jersey.application-path= 
# jersey過濾器鏈順序。
spring.jersey.filter.order= 0
#  init參數傳遞到Jersey通過servlet或過濾器。
spring.jersey.init.*= 
# jersey整合型。可以是“servlet”也可以是“filter”。
spring.jersey.type= servlet

# 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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章