Spring boot 配置

轉(zhuǎn)載自:https://blog.csdn.net/lpfsuperman/article/details/78287265

要加“m”說(shuō)明是MB,否則就是KB了.

-Xms:初始值

-Xmx:最大值

-Xmn:最小值

java -Xms80m -Xmx80m -jar mod.jar

時(shí)區(qū)設(shè)置

java -jar -Duser.timezone=GMT+08 mod.jar

#----------------------------------------

#核心屬性

#----------------------------------------

#BANNER

banner.charset = UTF -8#橫幅文件編碼。

banner.location = classpath :banner.txt#橫幅文件位置。

#LOGGING

logging.config =#日志記錄配置文件的位置。例如對(duì)于Logback的“classpath:logback.xml”

logging.exception-conversion-word =%wEx#記錄異常時(shí)使用的轉(zhuǎn)換字。

logging.file =#日志文件名。例如myapp.log

logging.level。* =#日志級(jí)別嚴(yán)重性映射。例如logging.level.org.springframework = DEBUG

logging.path =#日志文件的位置。例如/ var / log

logging.pattern.console =#輸出到控制臺(tái)的Appender模式。僅支持默認(rèn)logback設(shè)置。

logging.pattern.file =#輸出到文件的Appender模式。僅支持默認(rèn)logback設(shè)置。

logging.pattern.level =#日志級(jí)別的Appender模式(默認(rèn)為%5p)。僅支持默認(rèn)logback設(shè)置。

logging.register-shutdown-hook = false #在初始化時(shí)為日志系統(tǒng)注冊(cè)一個(gè)關(guān)閉掛接。

#AOP

spring.aop.auto = true #添加@EnableAspectJAutoProxy。

spring.aop.proxy-target-class = false #是否要?jiǎng)?chuàng)建基于子類(CGLIB)的代理(true),而不是基于標(biāo)準(zhǔn)Java接口的代理(false)。

#IDENTITY(ContextIdApplicationContextInitializer)

spring.application.index =#應(yīng)用程序索引。

spring.application.name =#應(yīng)用程序名稱。

#ADMIN(SpringApplicationAdminJmxAutoConfiguration)

spring.application.admin.enabled = false #為應(yīng)用程序啟用管理功能。

spring.application.admin.jmx-name = org .springframework.boot:type = Admin ,name = SpringApplication #應(yīng)用程序管理MBean的JMX名稱。

#AUTO-CONFIGURATION

spring.autoconfigure.exclude =#要自動(dòng)配置要排除的類。

#SPRING CORE

spring.beaninfo.ignore = true #跳過(guò)搜索BeanInfo類。

#SPRING CACHE(CacheProperties)

spring.cache.cache-names =#如果底層緩存管理器支持,則創(chuàng)建緩沖區(qū)名稱的逗號(hào)分隔列表。

spring.cache.ehcache.config =#用于初始化EhCache的配置文件的位置。

spring.cache.guava.spec =#用于創(chuàng)建緩存的規(guī)范。檢查CacheBuilderSpec有關(guān)規(guī)格格式的更多詳細(xì)信息。

spring.cache.hazelcast.config =#用于初始化Hazelcast的配置文件的位置。

spring.cache.infinispan.config =#用于初始化Infinispan的配置文件的位置。

spring.cache.jcache.config =#用于初始化緩存管理器的配置文件的位置。

spring.cache.jcache.provider =#用于檢索符合JSR-107規(guī)范的緩存管理器的CachingProvider實(shí)現(xiàn)的完全限定名。只有在類路徑上有多個(gè)JSR-107實(shí)現(xiàn)可用時(shí)才需要。

spring.cache.type =#緩存類型,默認(rèn)情況下根據(jù)環(huán)境自動(dòng)檢測(cè)。

#SPRING CONFIG - 僅使用環(huán)境屬性(ConfigFileApplicationListener)

spring.config.location =#配置文件位置。

spring.config.name = application #配置文件名。

#HAZELCAST(HazelcastProperties)

spring.hazelcast.config =#用于初始化Hazelcast的配置文件的位置。

#JMX

spring.jmx.default-domain =#JMX域名。

spring.jmx.enabled = true #將管理bean暴露給JMX域。

spring.jmx.server = mbeanServer #MBeanServer bean名稱。

#Email(MailProperties)

spring.mail.default-encoding = UTF -8#默認(rèn)MimeMessage編碼。

spring.mail.host =#SMTP服務(wù)器主機(jī)。例如smtp.example.com

spring.mail.jndi-name =#Session JNDI名稱。設(shè)置時(shí),優(yōu)先于其他郵件設(shè)置。

spring.mail.password =#SMTP服務(wù)器的登錄密碼。

spring.mail.port =#SMTP服務(wù)器端口。

spring.mail.properties。* =#其他JavaMail會(huì)話屬性。

spring.mail.protocol = smtp #SMTP服務(wù)器使用的協(xié)議。

spring.mail.test-connection = false #測(cè)試郵件服務(wù)器在啟動(dòng)時(shí)是否可用。

spring.mail.username =#SMTP服務(wù)器的登錄用戶。

#APPLICATION SETTINGS(SpringApplication)

spring.main.banner-mode = console #用于在應(yīng)用程序運(yùn)行時(shí)顯示橫幅的模式。

spring.main.sources =#要包括在ApplicationContext中的Sources(類名,包名或XML資源位置)。

spring.main.web-environment =#在Web環(huán)境中運(yùn)行應(yīng)用程序(默認(rèn)情況下自動(dòng)檢測(cè))。

#FILE ENCODING(FileEncodingApplicationListener)

spring.mandatory-file-encoding =#應(yīng)用程序必須使用的預(yù)期字符編碼。

#INTERNATIONALIZATION(MessageSourceAutoConfiguration)

spring.messages.basename = messages #以逗號(hào)分隔的基本名稱列表,每個(gè)名稱遵循ResourceBundle約定。

spring.messages.cache-seconds = -1#加載的資源束文件緩存到期時(shí)間(以秒為單位)。設(shè)置為-1時(shí),捆綁包將被永久緩存。

spring.messages.encoding = UTF -8#消息包編碼。

spring.messages.fallback-to-system-locale = true #設(shè)置是否找不到特定區(qū)域設(shè)置的文件,返回到系統(tǒng)區(qū)域設(shè)置。

#OUTPUT

spring.output.ansi.enabled = detect #配置ANSI輸出(可以是“detect”,“always”,“never”)。

#PID FILE(ApplicationPidFileWriter)

spring.pid.fail-on-write-error =#如果使用ApplicationPidFileWriter但不能寫(xiě)入PID文件,則失敗。

spring.pid.file =#要寫(xiě)入的PID文件的位置(如果使用ApplicationPidFileWriter)。

#PROFILES

spring.profiles.active =#活動(dòng)配置文件的逗號(hào)分隔列表。

spring.profiles.include =#無(wú)條件地激活指定的逗號(hào)分隔的概要文件。

#SENDGRID(SendGridAutoConfiguration)

spring.sendgrid.api-key =#SendGrid api key(用戶名/密碼的替代)

spring.sendgrid.username =#SendGrid帳戶用戶名

spring.sendgrid.password =#SendGrid帳戶密碼

spring.sendgrid.proxy.host =#SendGrid代理主機(jī)

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

#----------------------------------------

#WEB PROPERTIES

#----------------------------------------

#MULTIPART(MultipartProperties)

multipart.enabled = true #啟用對(duì)多部分上傳的支持。

multipart.file-size-threshold = 0 #將文件寫(xiě)入磁盤(pán)的閾值。值可以使用后綴“MB”或“KB”表示兆字節(jié)或千字節(jié)大小。

multipart.location =#上傳文件的中間位置。

multipart.max-file-size = 1Mb #最大文件大小。值可以使用后綴“MB”或“KB”表示兆字節(jié)或千字節(jié)大小。

multipart.max-request-size = 10Mb #最大請(qǐng)求大小。值可以使用后綴“MB”或“KB”表示兆字節(jié)或千字節(jié)大小。

#EMBEDDED SERVER CONFIGURATION(ServerProperties)

server.address =#服務(wù)器應(yīng)綁定到的網(wǎng)絡(luò)地址。

server.compression.enabled = false #如果啟用了響應(yīng)壓縮。

server.compression.excluded-user-agents =#要從壓縮中排除的用戶代理的列表。

server.compression.mime-types =#應(yīng)壓縮的MIME類型的逗號(hào)分隔列表。例如text / html,text / css,application / json

server.compression.min-response-size =#要執(zhí)行壓縮所需的最小響應(yīng)大小。例如2048

server.context-parameters。* =#Servlet上下文初始化參數(shù)。例如server.context-parameters.a = 阿爾法

server.context-path =#應(yīng)用程序的上下文路徑。

server.display-name = application #顯示應(yīng)用程序的名稱。

server.error.include-stacktrace = never #何時(shí)包含“stacktrace”屬性。

server.error.path = / error#錯(cuò)誤控制器的路徑。

server.error.whitelabel.enabled = true #在服務(wù)器錯(cuò)誤的情況下啟用瀏覽器中顯示的默認(rèn)錯(cuò)誤頁(yè)面。

server.jsp-servlet.class-name = org .apache.jasper.servlet.JspServlet#JSP servlet的類名。

server.jsp-servlet.init-parameters。* =#用于配置JSP servlet的初始化參數(shù)

server.jsp-servlet.registered = true #是否注冊(cè)了JSP servlet

server.port = 8080 #服務(wù)器HTTP端口。

server.server-header =#在服務(wù)器響應(yīng)頭中發(fā)送的值(如果為空,則使用servlet容器默認(rèn)值)

server.servlet-path = /#主調(diào)度程序servlet的路徑。

server.session.cookie.comment =#對(duì)會(huì)話cookie進(jìn)行注釋。

server.session.cookie.domain =#會(huì)話cookie的域。

server.session.cookie.http-only =?!癏ttpOnly”標(biāo)志為會(huì)話cookie。

server.session.cookie.max-age =#會(huì)話Cookie的最大時(shí)間(以秒為單位)。

server.session.cookie.name =#會(huì)話cookie名稱。

server.session.cookie.path =#會(huì)話cookie的路徑。

server.session.cookie.secure =?!鞍踩睒?biāo)志的會(huì)話cookie。

server.session.persistent = false #在重新啟動(dòng)之間保持會(huì)話數(shù)據(jù)。

server.session.store-dir =#用于存儲(chǔ)會(huì)話數(shù)據(jù)的目錄。

server.session.timeout =#會(huì)話超時(shí)(以秒為單位)。

server.session.tracking-modes =#會(huì)話跟蹤模式(以下一個(gè)或多個(gè):“cookie”,“url”,“ssl”)。

server.ssl.ciphers =#支持的SSL密碼。

server.ssl.client-auth =#是否需要客戶端身份驗(yàn)證(“需要”)或需要(“需要”)。需要信任存儲(chǔ)。

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 =#

server.tomcat.accesslog.directory = logs #創(chuàng)建日志文件的目錄??梢韵鄬?duì)于tomcat的base dir或絕對(duì)。

server.tomcat.accesslog.enabled = false #啟用訪問(wèn)日志。

server.tomcat.accesslog.pattern = common #訪問(wèn)日志的格式模式。

server.tomcat.accesslog.prefix = access_log #日志文件名前綴。

server.tomcat.accesslog.suffix = .log#日志文件名后綴。

server.tomcat.background-processor-delay = 30 #調(diào)用backgroundProcess方法之間的延遲(以秒為單位)。

server.tomcat.basedir =#Tomcat基目錄。如果未指定,將使用臨時(shí)目錄。

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}#正則表達(dá)式匹配可信IP地址。  

server.tomcat.max-http-header-size = 0 #HTTP消息頭的最大大小(以字節(jié)為單位)。

server.tomcat.max-threads = 0 #最大工作線程數(shù)。

server.tomcat.port-header = X -Forwarded-Port#用于覆蓋原始端口值的HTTP頭的名稱。

server.tomcat.protocol-header =#保存?zhèn)魅雲(yún)f(xié)議的頭,通常命名為“X-Forwarded-Proto”。

server.tomcat.protocol-header-https-value = https #指示入局請(qǐng)求使用SSL的協(xié)議頭的值。

server.tomcat.remote-ip-header =#從中提取遠(yuǎn)程ip的http標(biāo)頭的名稱。例如X-FORWARDED-FOR

server.tomcat.uri-encoding = UTF -8#用于解碼URI的字符編碼。

server.undertow.accesslog.dir =#訪問(wèn)日志目錄。

server.undertow.accesslog.enabled = false #啟用訪問(wèn)日志。

server.undertow.accesslog.pattern = common #訪問(wèn)日志的格式模式。

server.undertow.buffer-size =#每個(gè)緩沖區(qū)的大小(以字節(jié)為單位)。

server.undertow.buffers-per-region =#每個(gè)區(qū)域的緩沖區(qū)數(shù)。

server.undertow.direct-buffers =#在Java堆外分配緩沖區(qū)。

server.undertow.io-threads =#為worker創(chuàng)建的I / O線程數(shù)。

server.undertow.worker-threads =#工作線程數(shù)。

server.use-forward-headers =#如果X-Forwarded- *頭應(yīng)該應(yīng)用于HttpRequest。

#FREEMARKER(FreeMarkerAutoConfiguration)

spring.freemarker.allow-request-override = false #設(shè)置是否允許HttpServletRequest屬性覆蓋(隱藏)控制器生成的同名模型屬性。

spring.freemarker.allow-session-override = false #設(shè)置是否允許HttpSession屬性覆蓋(隱藏)控制器生成的同名模型屬性。

spring.freemarker.cache = false #啟用模板緩存。

spring.freemarker.charset = UTF -8#模板編碼。

spring.freemarker.check-template-location = true #檢查模板位置是否存在。

spring.freemarker.content-type = text / html#Content-Type值。

spring.freemarker.enabled = true #為此技術(shù)啟用MVC視圖分辨率。

spring.freemarker.expose-request-attributes = false #設(shè)置是否應(yīng)在與模板合并之前將所有請(qǐng)求屬性添加到模型。

spring.freemarker.expose-session-attributes = false #設(shè)置在與模板合并之前是否應(yīng)將所有HttpSession屬性添加到模型。

spring.freemarker.expose-spring-macro-helpers = true #設(shè)置是否公開(kāi)一個(gè)RequestContext供Spring的宏庫(kù)使用,名稱為“springMacroRequestContext”。

spring.freemarker.prefer-file-system-access = true #首選模板加載的文件系統(tǒng)訪問(wèn)。文件系統(tǒng)訪問(wèn)啟用對(duì)模板更改的熱檢測(cè)。

spring.freemarker.prefix =#在構(gòu)建URL時(shí),預(yù)先查看名稱的前綴。

spring.freemarker.request-context-attribute =#所有視圖的RequestContext屬性的名稱。

spring.freemarker.settings。* =#眾所周知的FreeMarker鍵,它將被傳遞給FreeMarker的配置。

spring.freemarker.suffix =#構(gòu)建URL時(shí)附加到視圖名稱的后綴。

spring.freemarker.template-loader-path = classpath :/ templates /#模板路徑的逗號(hào)分隔列表。

spring.freemarker.view-names =??梢越馕龅囊晥D名稱的白名單。

#GROOVY TEMPLATES(GroovyTemplateAutoConfiguration)

spring.groovy.template.allow-request-override = false #設(shè)置是否允許HttpServletRequest屬性覆蓋(隱藏)控制器生成的同名模型屬性。

spring.groovy.template.allow-session-override = false #設(shè)置是否允許HttpSession屬性覆蓋(隱藏)控制器生成的同名的模型屬性。

spring.groovy.template.cache =#啟用模板緩存。

spring.groovy.template.charset = UTF -8#模板編碼。

spring.groovy.template.check-template-location = true #檢查模板位置是否存在。

spring.groovy.template.configuration。* =#參見(jiàn)GroovyMarkupConfigurer

spring.groovy.template.content-type = test / html#Content-Type值。

spring.groovy.template.enabled = true #為此技術(shù)啟用MVC視圖分辨率。

spring.groovy.template.expose-request-attributes = false #設(shè)置是否應(yīng)在合并模板之前將所有請(qǐng)求屬性添加到模型。

spring.groovy.template.expose-session-attributes = false #設(shè)置在與模板合并之前是否應(yīng)該將所有HttpSession屬性添加到模型。

spring.groovy.template.expose-spring-macro-helpers = true #設(shè)置是否公開(kāi)一個(gè)RequestContext供Spring的宏庫(kù)使用,名稱為“springMacroRequestContext”。

spring.groovy.template.prefix =#構(gòu)建URL時(shí),在前面添加用于查看名稱的前綴。

spring.groovy.template.request-context-attribute =#所有視圖的RequestContext屬性的名稱。

spring.groovy.template.resource-loader-path = classpath :/ templates /#模板路徑。

spring.groovy.template.suffix = .tpl#構(gòu)建URL時(shí)附加到視圖名稱的后綴。

spring.groovy.template.view-names =??梢越馕龅囊晥D名稱的白名單。

#SPRING HATEOAS(HateoasProperties)

spring.hateoas.use-hal-as-default-json-media-type = true #指定是否應(yīng)該將application / hal + json響應(yīng)發(fā)送到接受application / json的請(qǐng)求。

#HTTP消息轉(zhuǎn)換

spring.http.converters.preferred-json-mapper = jackson #首選用于HTTP消息轉(zhuǎn)換的JSON映射程序。設(shè)置為“gson”以強(qiáng)制使用Gson,當(dāng)它和Jackson都在類路徑上時(shí)。

#HTTP encoding(HttpEncodingProperties)

spring.http.encoding.charset = UTF -8#HTTP請(qǐng)求和響應(yīng)的字符集。如果未明確設(shè)置,則添加到“Content-Type”標(biāo)題。

spring.http.encoding.enabled = true #啟用http編碼支持。

spring.http.encoding.force = true #強(qiáng)制編碼到配置的字符集上HTTP請(qǐng)求和響應(yīng)。

#JACKSON(JacksonProperties)

spring.jackson.date-format =#日期格式字符串或完全限定的日期格式類名稱。例如yyyy-MM-dd HH:mm:ss。

spring.jackson.deserialization。* =#Jackson on / off功能影響Java對(duì)象的反序列化方式。

spring.jackson.generator。* =#Jackson的on / off功能用于生成器。

spring.jackson.joda-date-time-format =#Joda日期時(shí)間格式字符串。如果未配置,如果使用格式字符串配置,“date-format”將用作后備。

spring.jackson.locale =#用于格式化的區(qū)域設(shè)置。

spring.jackson.mapper。* =#Jackson通用開(kāi)/關(guān)功能。

spring.jackson.parser。* =#Jackson解析器的on / off功能。

spring.jackson.property-naming-strategy =#Jackson的PropertyNamingStrategy上的一個(gè)常量。也可以是PropertyNamingStrategy子類的完全限定類名。

spring.jackson.serialization。* =#Jackson on / off功能影響Java對(duì)象的序列化方式。

spring.jackson.serialization-inclusion =??刂菩蛄谢陂g屬性的包含。使用Jackson的JsonInclude.Include枚舉中的值之一進(jìn)行配置。

spring.jackson.time-zone =#格式化日期時(shí)使用的時(shí)區(qū)。例如America / Los_Angeles

#JERSEY(JerseyProperties)

spring.jersey.application-path =#作為應(yīng)用程序的基本URI的路徑。如果指定,則覆蓋“@ApplicationPath”的值。

spring.jersey.filter.order = 0 #Jersey過(guò)濾器鏈的順序。

spring.jersey.init。* =#通過(guò)servlet或過(guò)濾器傳遞給Jersey的初始參數(shù)。

spring.jersey.type = servlet #Jersey集成類型??梢允恰皊ervlet”或“filter”。

#SPRING MOBILE DEVICE VIEWS(DeviceDelegatingViewResolverAutoConfiguration)

spring.mobile.devicedelegatingviewresolver.enable-fallback = false #啟用支持回退解析。

spring.mobile.devicedelegatingviewresolver.enabled = false #啟用設(shè)備視圖解析器。

spring.mobile.devicedelegatingviewresolver.mobile-prefix = mobile /#預(yù)先在移動(dòng)設(shè)備上查看名稱的前綴。

spring.mobile.devicedelegatingviewresolver.mobile-suffix =#附加到移動(dòng)設(shè)備的視圖名稱的后綴。

spring.mobile.devicedelegatingviewresolver.normal-prefix =#前綴,用于查看常規(guī)設(shè)備的名稱。

spring.mobile.devicedelegatingviewresolver.normal-suffix =#附加到普通設(shè)備的視圖名稱的后綴。

spring.mobile.devicedelegatingviewresolver.tablet-prefix = tablet /#預(yù)先查看平板電腦設(shè)備名稱的前綴。

spring.mobile.devicedelegatingviewresolver.tablet-suffix =#附加到平板電腦設(shè)備的視圖名稱的后綴。

#SPRING MOBILE SITE PREFERENCE(SitePreferenceAutoConfiguration)

spring.mobile.sitepreference.enabled = true #啟用SitePreferenceHandler。

#MUSTACHE TEMPLATES(MustacheAutoConfiguration)

spring.mustache.cache = false #啟用模板緩存。

spring.mustache.charset = UTF -8#模板編碼。

spring.mustache.check-template-location = true #檢查模板位置是否存在。

spring.mustache.content-type = text / html#Content-Type值。

spring.mustache.enabled = true #為此技術(shù)啟用MVC視圖分辨率。

spring.mustache.prefix = classpath :/ templates /#要應(yīng)用于模板名稱的前綴。

spring.mustache.suffix = .html#應(yīng)用于模板名稱的后綴。

spring.mustache.view-names =??梢越馕龅囊晥D名稱的白名單。

#SPRING MVC(WebMvcProperties)

spring.mvc.async.request-timeout =#異步請(qǐng)求處理超時(shí)之前的時(shí)間(以毫秒為單位)。

spring.mvc.date-format =#要使用的日期格式。例如dd / MM / yyyy。

spring.mvc.dispatch-trace-request = false #將TRACE請(qǐng)求分發(fā)到FrameworkServlet doService方法。

spring.mvc.dispatch-options-request = false #向FrameworkServlet doService方法分發(fā)OPTIONS請(qǐng)求。

spring.mvc.favicon.enabled = true #啟用favicon.ico的解析。

spring.mvc.ignore-default-model-on-redirect = true #如果在重定向場(chǎng)景中應(yīng)該忽略“默認(rèn)”模型的內(nèi)容。

spring.mvc.locale =#要使用的區(qū)域設(shè)置。

spring.mvc.media-types。* =#將文件擴(kuò)展名映射到用于內(nèi)容協(xié)商的媒體類型。

spring.mvc.message-codes-resolver-format =#消息代碼的格式化策略。例如PREFIX_ERROR_CODE

spring.mvc.static-path-pattern = / **#用于靜態(tài)資源的路徑模式。

spring.mvc.throw-exception-if-no-handler-found = false #如果沒(méi)有找到處理請(qǐng)求的處理程序,應(yīng)拋出“NoHandlerFoundException”。

spring.mvc.view.prefix =#Spring MVC視圖前綴。

spring.mvc.view.suffix =#Spring MVC視圖后綴。

#SPRING RESOURCES HANDLING(ResourceProperties)

spring.resources.add-mappings = true #啟用默認(rèn)資源處理。

spring.resources.cache-period =#資源處理程序服務(wù)的資源的高速緩存時(shí)間段(以秒為單位)。

spring.resources.chain.cache = true #在資源鏈中啟用緩存。

spring.resources.chain.enabled =#啟用Spring資源處理鏈。默認(rèn)情況下禁用,除非已啟用至少一個(gè)策略。

spring.resources.chain.html-application-cache = false #啟用HTML5應(yīng)用程序緩存清單重寫(xiě)。

spring.resources.chain.strategy.content.enabled = false #啟用內(nèi)容版本策略。

spring.resources.chain.strategy.content.paths = / **#要應(yīng)用于版本策略的模式的逗號(hào)分隔列表。

spring.resources.chain.strategy.fixed.enabled = false #啟用固定版本策略。

spring.resources.chain.strategy.fixed.paths =#要應(yīng)用于版本策略的模式的逗號(hào)分隔列表。

spring.resources.chain.strategy.fixed.version =#用于版本策略的版本字符串。

spring.resources.static-locations = classpath :/ META-INF / resources /,classpath:/ resources /,classpath:/ static /,classpath:/ public /#靜態(tài)資源的位置。

#SPRING SOCIAL(SocialWebAutoConfiguration)

spring.social.auto-connection-views = false #啟用支持的提供程序的連接狀態(tài)視圖。

#SPRING SOCIAL FACEBOOK(FacebookAutoConfiguration)

spring.social.facebook.app-id =#你的應(yīng)用程序的Facebook應(yīng)用程序ID

spring.social.facebook.app-secret =#你的應(yīng)用程序的Facebook應(yīng)用程序秘密

#SPRING SOCIAL LINKEDIN(LinkedInAutoConfiguration)

spring.social.linkedin.app-id =#您的應(yīng)用程序的LinkedIn應(yīng)用程序ID

spring.social.linkedin.app-secret =#你的應(yīng)用程序的LinkedIn應(yīng)用程序秘密

#SPRING SOCIAL TWITTER(TwitterAutoConfiguration)

spring.social.twitter.app-id =#您應(yīng)用程序的Twitter應(yīng)用程序ID

spring.social.twitter.app-secret =#你的應(yīng)用程序的Twitter應(yīng)用程序秘密

#THYMELEAF(ThymeleafAutoConfiguration)

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 =#應(yīng)該從解析中排除的以逗號(hào)分隔的視圖名稱列表。

spring.thymeleaf.mode = HTML5 #要應(yīng)用于模板的模板模式。另請(qǐng)參見(jiàn)StandardTemplateModeHandlers。

spring.thymeleaf.prefix = classpath :/ templates /#構(gòu)建URL時(shí)預(yù)先查看名稱的前綴。

spring.thymeleaf.suffix = .html#構(gòu)建URL時(shí)附加到視圖名稱的后綴。

spring.thymeleaf.template-resolver-order =#鏈中模板解析器的順序。

spring.thymeleaf.view-names =#可以解析的以逗號(hào)分隔的視圖名稱列表。

#VELOCITY TEMPLATES(VelocityAutoConfiguration)

spring.velocity.allow-request-override = false #設(shè)置是否允許HttpServletRequest屬性覆蓋(隱藏)控制器生成的同名模型屬性。

spring.velocity.allow-session-override = false #設(shè)置是否允許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上下文中公開(kāi)的DateTool輔助對(duì)象的名稱。

spring.velocity.enabled = true #為此技術(shù)啟用MVC視圖分辨率。

spring.velocity.expose-request-attributes = false #設(shè)置是否應(yīng)在與模板合并之前將所有請(qǐng)求屬性添加到模型。

spring.velocity.expose-session-attributes = false #設(shè)置在與模板合并之前是否應(yīng)該將所有HttpSession屬性添加到模型。

spring.velocity.expose-spring-macro-helpers = true #設(shè)置是否公開(kāi)一個(gè)RequestContext供Spring的宏庫(kù)使用,名稱為“springMacroRequestContext”。

spring.velocity.number-tool-attribute =#要在視圖的Velocity上下文中公開(kāi)的NumberTool輔助對(duì)象的名稱。

spring.velocity.prefer-file-system-access = true #首選模板加載的文件系統(tǒng)訪問(wèn)。文件系統(tǒng)訪問(wèn)啟用對(duì)模板更改的熱檢測(cè)。

spring.velocity.prefix =#構(gòu)建URL時(shí)在前面添加用于查看名稱的前綴。

spring.velocity.properties。* =#額外的速度屬性。

spring.velocity.request-context-attribute =#所有視圖的RequestContext屬性的名稱。

spring.velocity.resource-loader-path = classpath :/ templates /#模板路徑。

spring.velocity.suffix = .vm #構(gòu)建URL時(shí)附加到視圖名稱的后綴。

spring.velocity.toolbox-config-location =#Velocity工具箱配置位置。例如`/ WEB-INF / toolbox.xml

spring.velocity.view-names =??梢越馕龅囊晥D名稱的白名單。

#----------------------------------------

#安全性

#----------------------------------------

#SECURITY(SecurityProperties)

security.basic.authorize-mode = role #應(yīng)用安全授權(quán)模式。

security.basic.enabled = true #啟用基本認(rèn)證。

security.basic.path = / **#以逗號(hào)分隔的安全路徑列表。

security.basic.realm = Spring #HTTP基本領(lǐng)域名稱。

security.enable-csrf = false #啟用跨站點(diǎn)請(qǐng)求偽造支持。

security.filter-order = 0 #安全過(guò)濾器鏈順序。

security.filter-dispatcher-types = ASYNC ,F(xiàn)ORWARD,INCLUDE,REQUEST#安全過(guò)濾器鏈分派器類型。

security.headers.cache = true #啟用緩存控制HTTP頭。

security.headers.content-type = true #啟用“X-Content-Type-Options”標(biāo)頭。

security.headers.frame = true #啟用“X-Frame-Options”標(biāo)頭。

security.headers.hsts =#HTTP嚴(yán)格傳輸安全(HSTS)模式(無(wú),域,全部)。

security.headers.xss = true #啟用跨站點(diǎn)腳本(XSS)保護(hù)。

security.ignored =#要從默認(rèn)安全路徑中排除的路徑的逗號(hào)分隔列表。

security.require-ssl = false #為所有請(qǐng)求啟用安全通道。

security.sessions = stateless #會(huì)話創(chuàng)建策略(始終,從不,if_required,無(wú)狀態(tài))。

security.user.name = user #默認(rèn)用戶名。

security.user.password =#默認(rèn)用戶名的密碼。默認(rèn)情況下,在啟動(dòng)時(shí)記錄隨機(jī)密碼。

security.user.role = USER #為默認(rèn)用戶名授予角色。

#SECURITY OAUTH2 CLIENT(OAuth2ClientProperties

security.oauth2.client.client-id =#OAuth2客戶端ID。

security.oauth2.client.client-secret =#OAuth2客戶端密鑰。默認(rèn)情況下會(huì)生成隨機(jī)密鑰

#SECURITY OAUTH2 RESOURCES(ResourceServerProperties

security.oauth2.resource.id =#資源的標(biāo)識(shí)符。

security.oauth2.resource.jwt.key-uri =#JWT令牌的URI。如果值不可用并且密鑰為public,則可以設(shè)置。

security.oauth2.resource.jwt.key-value =#JWT令牌的驗(yàn)證密鑰。可以是對(duì)稱秘密或PEM編碼的RSA公鑰。

security.oauth2.resource.prefer-token-info = true #使用令牌info,可以設(shè)置為false來(lái)使用用戶信息。

security.oauth2.resource.service-id = resource #

security.oauth2.resource.token-info-uri =#令牌解碼端點(diǎn)的URI。

security.oauth2.resource.token-type =#使用userInfoUri時(shí)要發(fā)送的令牌類型。

security.oauth2.resource.user-info-uri =#用戶端點(diǎn)的URI。

#SECURITY OAUTH2 SSO(OAuth2SsoProperties

security.oauth2.sso.filter-order =#如果未提供明確的WebSecurityConfigurerAdapter,則應(yīng)用過(guò)濾順序

security.oauth2.sso.login-path = / login#登錄頁(yè)面的路徑,即觸發(fā)重定向到OAuth2授權(quán)服務(wù)器的路徑

#----------------------------------------

#數(shù)據(jù)屬性

#----------------------------------------

#FLYWAY(FlywayProperties)

flyway.baseline-description =#

flyway.baseline-version = 1 #版本開(kāi)始遷移

flyway.baseline-on-migrate =#

flyway.check-location = false #檢查遷移腳本位置是否存在。

flyway.clean-on-validation-error =#

flyway.enabled = true #啟用flyway 。

flyway.encoding =#

flyway.ignore-failed-future-migration =#

flyway.init-sqls =#在獲取連接后立即執(zhí)行初始化連接的SQL語(yǔ)句。

flyway.locations = classpath:db / migration#遷移腳本的位置

flyway.out-of-order =#

flyway.password =#JDBC密碼,如果你想讓Flyway創(chuàng)建自己的DataSource

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 =#要遷移的數(shù)據(jù)庫(kù)的JDBC URL。如果未設(shè)置,則使用主配置的數(shù)據(jù)源。

flyway.user =#要遷移的數(shù)據(jù)庫(kù)的登錄用戶。

flyway.validate-on-migrate =#

#LIQUIBASE(LiquibaseProperties)

liquibase.change-log = classpath :/db/changelog/db.changelog-master.yaml#更改日志配置路徑。

liquibase.check-change-log-location = true #檢查更改日志位置是否存在。

liquibase.contexts =#要使用的運(yùn)行時(shí)上下文的逗號(hào)分隔列表。

liquibase.default-schema =#默認(rèn)數(shù)據(jù)庫(kù)模式。

liquibase.drop-first = false #刪除數(shù)據(jù)庫(kù)模式。

liquibase.enabled = true #啟用liquibase支持。

liquibase.labels =#要使用的運(yùn)行時(shí)標(biāo)簽的逗號(hào)分隔列表。

liquibase.parameters。* =#更改日志參數(shù)。

liquibase.password =#要遷移的數(shù)據(jù)庫(kù)的登錄密碼。

liquibase.url =#要遷移的數(shù)據(jù)庫(kù)的JDBC URL。如果未設(shè)置,則使用主配置的數(shù)據(jù)源。

liquibase.user =#要遷移的數(shù)據(jù)庫(kù)的登錄用戶。

#DAO(PersistenceExceptionTranslationAutoConfiguration)

spring.dao.exceptiontranslation.enabled = true #啟用PersistenceExceptionTranslationPostProcessor。

#CASSANDRA(Cassandra屬性)

spring.data.cassandra.cluster-name =#Cassandra集群的名稱。

spring.data.cassandra.compression =#Cassandra二進(jìn)制協(xié)議支持的壓縮。

spring.data.cassandra.connect-timeout-millis =#套接字選項(xiàng):連接超時(shí)。

spring.data.cassandra.consistency-level =#查詢一致性級(jí)別。

spring.data.cassandra.contact-points = localhost #群集節(jié)點(diǎn)地址的逗號(hào)分隔列表。

spring.data.cassandra.fetch-size =#查詢默認(rèn)抓取大小。

spring.data.cassandra.keyspace-name =#要使用的鍵空間名稱。

spring.data.cassandra.load-balancing-policy =#負(fù)載均衡策略的類名稱。

spring.data.cassandra.port =#Cassandra服務(wù)器的端口。

spring.data.cassandra.password =#服務(wù)器的登錄密碼。

spring.data.cassandra.read-timeout-millis =#Socket選項(xiàng):讀取超時(shí)。

spring.data.cassandra.reconnection-policy =#重新連接策略類。

spring.data.cassandra.retry-policy =#重試策略的類名。

spring.data.cassandra.serial-consistency-level =#查詢串行一致性級(jí)別。

spring.data.cassandra.ssl = false #啟用SSL支持。

spring.data.cassandra.username =#服務(wù)器的登錄用戶。

#ELASTICSEARCH(ElasticsearchProperties)

spring.data.elasticsearch.cluster-name = elasticsearch #Elasticsearch集群名稱。

spring.data.elasticsearch.cluster-nodes =#群集節(jié)點(diǎn)地址的逗號(hào)分隔列表。如果未指定,則啟動(dòng)客戶機(jī)節(jié)點(diǎn)。

spring.data.elasticsearch.properties。* =#用于配置客戶端的其他屬性。

spring.data.elasticsearch.repositories.enabled = true #啟用Elasticsearch存儲(chǔ)庫(kù)。

#MONGODB(MongoProperties)

spring.data.mongodb.authentication-database =#認(rèn)證數(shù)據(jù)庫(kù)名稱。

spring.data.mongodb.database = test #數(shù)據(jù)庫(kù)名稱。

spring.data.mongodb.field命名策略 =#要使用的FieldNamingStrategy的完全限定名稱。

spring.data.mongodb.grid-fs-database =#GridFS數(shù)據(jù)庫(kù)名稱。

spring.data.mongodb.host = localhost #Mongo服務(wù)器主機(jī)。

spring.data.mongodb.password =#mongo服務(wù)器的登錄密碼。

spring.data.mongodb.port = 27017 #Mongo服務(wù)器端口。

spring.data.mongodb.repositories.enabled = true #啟用Mongo存儲(chǔ)庫(kù)。

spring.data.mongodb.uri = mongodb :// localhost / test#Mongo數(shù)據(jù)庫(kù)URI。設(shè)置時(shí),將忽略主機(jī)和端口。

spring.data.mongodb.username =#mongo服務(wù)器的登錄用戶。

#DATA REST(RepositoryRestProperties)

spring.data.rest.base-path =#Spring Data REST用于公開(kāi)資源庫(kù)資源的基本路徑。

spring.data.rest.default-page-size =#默認(rèn)的頁(yè)面大小。

spring.data.rest.enable-enum-translation =#通過(guò)Spring Data REST默認(rèn)資源包啟用枚舉值轉(zhuǎn)換。

spring.data.rest.limit-param-name =#URL查詢字符串參數(shù)的名稱,指示一次返回的結(jié)果數(shù)。

spring.data.rest.max-page-size =#最大頁(yè)面大小。

spring.data.rest.page-param-name =#指示要返回哪個(gè)頁(yè)面的URL查詢字符串參數(shù)的名稱。

spring.data.rest.return-body-on-create =#創(chuàng)建實(shí)體后返回響應(yīng)體。

spring.data.rest.return-body-on-update =#更新實(shí)體后返回響應(yīng)體。

spring.data.rest.sort-param-name =#URL查詢字符串參數(shù)的名稱,指示對(duì)結(jié)果進(jìn)行排序的方向。

#SOLR(SolrProperties)

spring.data.solr.host = HTTP ://127.0.0.1:8983 / Solr的#Solr的主機(jī)。如果設(shè)置了“zk-host”,則忽略。

spring.data.solr.repositories.enabled = true #啟用Solr存儲(chǔ)庫(kù)。

spring.data.solr.zk-host =#ZooKeeper主機(jī)地址,格式為HOST:PORT。

#DATASOURCE(DataSourceAutoConfiguration&DataSourceProperties)

spring.datasource.continue-on-error = false #初始化數(shù)據(jù)庫(kù)時(shí)發(fā)生錯(cuò)誤時(shí)不要停止。

spring.datasource.data =#Data(DML)腳本資源引用。

spring.datasource.driver-class-name =#JDBC驅(qū)動(dòng)程序的標(biāo)準(zhǔn)名稱。默認(rèn)情況下基于URL自動(dòng)檢測(cè)。

spring.datasource.initialize = true #使用'data.sql'填充數(shù)據(jù)庫(kù)。

spring.datasource.jmx-enabled = false #啟用JMX支持(如果由底層池提供)。

spring.datasource.jndi-name =#JNDI數(shù)據(jù)源的位置。類,url,用戶名和密碼設(shè)置時(shí)將被忽略。

spring.datasource.max-active =#例如100

spring.datasource.max-idle =#例8

spring.datasource.max-wait =

spring .datasource.min-evictable-idle-time-millis =

spring .datasource.min-idle = 8

spring.datasource.name = testdb #數(shù)據(jù)源的名稱。

spring.datasource.password =#數(shù)據(jù)庫(kù)的登錄密碼。

spring.datasource.platform = all #在模式資源(schema - $ {platform} .sql)中使用的平臺(tái)。

spring.datasource.schema =#模式(DDL)腳本資源引用。

spring.datasource.separator =; #SQL初始化腳本中的語(yǔ)句分隔符。

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 =#要使用的連接池實(shí)現(xiàn)的完全限定名稱。默認(rèn)情況下,它是從類路徑自動(dòng)檢測(cè)。

spring.datasource.url =#數(shù)據(jù)庫(kù)的JDBC url。

spring.datasource.username =

spring .datasource.validation-query =

#H2 Web控制臺(tái)(H2ConsoleProperties)

spring.h2.console.enabled = false #啟用控制臺(tái)。

spring.h2.console.path = / h2-console#控制臺(tái)可用的路徑。

#JOOQ(JooqAutoConfiguration)

spring.jooq.sql-dialect =#SQLDialect與配置的數(shù)據(jù)源通信時(shí)使用的JOOQ。例如POSTGRES

#JPA(JpaBaseConfiguration,HibernateJpaAutoConfiguration)

spring.data.jpa.repositories.enabled = true #啟用JPA存儲(chǔ)庫(kù)。

spring.jpa.database =#要操作的目標(biāo)數(shù)據(jù)庫(kù),默認(rèn)情況下自動(dòng)檢測(cè)。也可以使用“databasePlatform”屬性進(jìn)行設(shè)置。

spring.jpa.database-platform =#要操作的目標(biāo)數(shù)據(jù)庫(kù)的名稱,默認(rèn)情況下自動(dòng)檢測(cè)。可以選擇使用“數(shù)據(jù)庫(kù)”設(shè)置枚舉。

spring.jpa.generate-ddl = false #在啟動(dòng)時(shí)初始化模式。

spring.jpa.hibernate.ddl-auto =#DDL模式。這實(shí)際上是“hibernate.hbm2ddl.auto”屬性的快捷方式。使用嵌入式數(shù)據(jù)庫(kù)時(shí),默認(rèn)為“create-drop”,否則為“none”。

spring.jpa.hibernate.naming-strategy =#命名策略完全限定名。

spring.jpa.open-in-view = true #注冊(cè)O(shè)penEntityManagerInViewInterceptor。將JPA EntityManager綁定到線程以進(jìn)行請(qǐng)求的整個(gè)處理。

spring.jpa.properties。* =#在JPA提供程序上設(shè)置的其他本機(jī)屬性。

spring.jpa.show-sql = false #啟用SQL語(yǔ)句的日志記錄。

#JTA(JtaAutoConfiguration)

spring.jta。* =#技術(shù)特定配置

spring.jta.log-dir =#事務(wù)日志目錄。

#ATOMIKOS

spring.jta.atomikos.connectionfactory.borrow-connection-timeout = 30 #從池借用連接的超時(shí)(以秒為單位)。

spring.jta.atomikos.connectionfactory.ignore-session-transacted-flag = true #創(chuàng)建會(huì)話時(shí)是否忽略事務(wù)標(biāo)志。

spring.jta.atomikos.connectionfactory.local-transaction-mode = false #是否需要本地事務(wù)。

spring.jta.atomikos.connectionfactory.maintenance-interval = 60 #池維護(hù)線程運(yùn)行之間的時(shí)間(以秒為單位)。

spring.jta.atomikos.connectionfactory.max-idle-time = 60 #從池中清除連接的時(shí)間(以秒為單位)。

spring.jta.atomikos.connectionfactory.max-lifetime = 0 #連接在被銷毀之前可以被合并的時(shí)間(以秒為單位)。0表示無(wú)限制。

spring.jta.atomikos.connectionfactory.max-pool-size = 1 #池的最大大小。

spring.jta.atomikos.connectionfactory.min-pool-size = 1 #池的最小大小。

spring.jta.atomikos.connectionfactory.reap-timeout = 0 #借用連接的收集超時(shí)(以秒為單位)。0表示無(wú)限制。

spring.jta.atomikos.connectionfactory.unique-resource-name = jmsConnectionFactory #用于在恢復(fù)期間標(biāo)識(shí)資源的唯一名稱。

spring.jta.atomikos.datasource.borrow-connection-timeout = 30 #從池借用連接的超時(shí)(以秒為單位)。

spring.jta.atomikos.datasource.default-isolation-level =#池提供的連接的默認(rèn)隔離級(jí)別。

spring.jta.atomikos.datasource.login-timeout =#建立數(shù)據(jù)庫(kù)連接的超時(shí)(以秒為單位)。

spring.jta.atomikos.datasource.maintenance-interval = 60 #池維護(hù)線程運(yùn)行之間的時(shí)間(以秒為單位)。

spring.jta.atomikos.datasource.max-idle-time = 60 #從池中清除連接的時(shí)間(以秒為單位)。

spring.jta.atomikos.datasource.max-lifetime = 0 #連接在被銷毀之前可以被合并的時(shí)間(以秒為單位)。0表示無(wú)限制。

spring.jta.atomikos.datasource.max-pool-size = 1 #池的最大大小。

spring.jta.atomikos.datasource.min-pool-size = 1 #池的最小大小。

spring.jta.atomikos.datasource.reap-timeout = 0 #借用連接的收集超時(shí)(以秒為單位)。0表示無(wú)限制。

spring.jta.atomikos.datasource.test-query =#用于在返回連接之前驗(yàn)證連接的SQL查詢或語(yǔ)句。

spring.jta.atomikos.datasource.unique-resource-name = dataSource #用于在恢復(fù)期間標(biāo)識(shí)資源的唯一名稱。

#BITRONIX

spring.jta.bitronix.connectionfactory.acquire-increment = 1 #增加池時(shí)創(chuàng)建的連接數(shù)。

spring.jta.bitronix.connectionfactory.acquisition-interval = 1 #在獲取無(wú)效連接后再次嘗試獲取連接之前等待的時(shí)間(以秒為單位)。

spring.jta.bitronix.connectionfactory.acquisition-timeout = 30 #從池中獲取連接的超時(shí)(以秒為單位)。

spring.jta.bitronix.connectionfactory.allow-local-transactions = true #事務(wù)管理器是否應(yīng)該允許混合XA和非XA事務(wù)。

spring.jta.bitronix.connectionfactory.apply-transaction-timeout = false #是否應(yīng)該在登記時(shí)在XAResource上設(shè)置事務(wù)超時(shí)。

spring.jta.bitronix.connectionfactory.automatic-enlisting-enabled = true #資源是否應(yīng)自動(dòng)注冊(cè)和刪除。

spring.jta.bitronix.connectionfactory.cache-producers-consumers = true #是否生產(chǎn)和消費(fèi)者應(yīng)該被緩存。

spring.jta.bitronix.connectionfactory.defer-connection-release = true #提供程序是否可以在同一連接上運(yùn)行多個(gè)事務(wù),并支持事務(wù)交叉。

spring.jta.bitronix.connectionfactory.ignore-recovery-failures = false #是否應(yīng)該忽略恢復(fù)失敗。

spring.jta.bitronix.connectionfactory.max-idle-time = 60 #從池中清除連接的時(shí)間(以秒為單位)。

spring.jta.bitronix.connectionfactory.max-pool-size = 10 #池的最大大小。0表示無(wú)限制。

spring.jta.bitronix.connectionfactory.min-pool-size = 0 #池的最小大小。

spring.jta.bitronix.connectionfactory.password =#用于連接到JMS提供程序的密碼。

spring.jta.bitronix.connectionfactory.share-transaction-connections = false #是否可以在事務(wù)上下文中共享處于ACCESSIBLE狀態(tài)的連接。

spring.jta.bitronix.connectionfactory.test-connections = true #從池中獲取連接時(shí)是否應(yīng)該進(jìn)行測(cè)試。

spring.jta.bitronix.connectionfactory.two-pc-ordering-position = 1 #此資源在兩階段提交期間應(yīng)采用的位置(始終為Integer.MIN_VALUE,始終為Integer.MAX_VALUE)。

spring.jta.bitronix.connectionfactory.unique-name = jmsConnectionFactory #用于在恢復(fù)期間標(biāo)識(shí)資源的唯一名稱。

spring.jta.bitronix.connectionfactory.use-tm-join = true 啟動(dòng)XAResources時(shí)是否應(yīng)使用TMJOIN。

spring.jta.bitronix.connectionfactory.user =#用于連接到JMS提供程序的用戶。

spring.jta.bitronix.datasource.acquire-increment = 1 #增加池時(shí)創(chuàng)建的連接數(shù)。

spring.jta.bitronix.datasource.acquisition-interval = 1 #在獲取無(wú)效連接后再次嘗試獲取連接之前等待的時(shí)間(以秒為單位)。

spring.jta.bitronix.datasource.acquisition-timeout = 30 #從池中獲取連接的超時(shí)(以秒為單位)。

spring.jta.bitronix.datasource.allow-local-transactions = true #事務(wù)管理器是否應(yīng)允許混合XA和非XA事務(wù)。

spring.jta.bitronix.datasource.apply-transaction-timeout = false #是否應(yīng)該在登記時(shí)在XAResource上設(shè)置事務(wù)超時(shí)。

spring.jta.bitronix.datasource.automatic-enlisting-enabled = true #資源是否應(yīng)自動(dòng)注冊(cè)和刪除。

spring.jta.bitronix.datasource.cursor-holdability =#連接的默認(rèn)游標(biāo)保留能力。

spring.jta.bitronix.datasource.defer-connection-release = true #數(shù)據(jù)庫(kù)是否可以在同一連接上運(yùn)行多個(gè)事務(wù),并支持事務(wù)交叉。

spring.jta.bitronix.datasource.enable-jdbc4-connection-test =#從池中獲取連接時(shí)是否調(diào)用Connection.isValid()。

spring.jta.bitronix.datasource.ignore-recovery-failures = false #是否應(yīng)該忽略恢復(fù)失敗。

spring.jta.bitronix.datasource.isolation-level =#連接的默認(rèn)隔離級(jí)別。

spring.jta.bitronix.datasource.local-auto-commit =#本地事務(wù)的默認(rèn)自動(dòng)提交模式。

spring.jta.bitronix.datasource.login-timeout =#建立數(shù)據(jù)庫(kù)連接的超時(shí)(以秒為單位)。

spring.jta.bitronix.datasource.max-idle-time = 60 #從池中清除連接的時(shí)間(以秒為單位)。

spring.jta.bitronix.datasource.max-pool-size = 10 #池的最大大小。0表示無(wú)限制。

spring.jta.bitronix.datasource.min-pool-size = 0 #池的最小大小。

spring.jta.bitronix.datasource.prepared-statement-cache-size = 0 #預(yù)準(zhǔn)備語(yǔ)句緩存的目標(biāo)大小。0禁用高速緩存。

spring.jta.bitronix.datasource.share-transaction-connections = false #是否可以在事務(wù)上下文中共享處于ACCESSIBLE狀態(tài)的連接。

spring.jta.bitronix.datasource.test-query =#用于在返回連接之前驗(yàn)證連接的SQL查詢或語(yǔ)句。

spring.jta.bitronix.datasource.two-pc-ordering-position = 1 #這個(gè)資源在兩階段提交期間應(yīng)該采用的位置(始終為Integer.MIN_VALUE,始終為Integer.MAX_VALUE)。

spring.jta.bitronix.datasource.unique-name = dataSource #用于在恢復(fù)期間標(biāo)識(shí)資源的唯一名稱。

spring.jta.bitronix.datasource.use-tm-join = true 啟動(dòng)XAResources時(shí)是否應(yīng)使用TMJOIN。

#EMBEDDED MONGODB(EmbeddedMongoProperties)

spring.mongodb.embedded.features = SYNC_DELAY #要啟用的功能的逗號(hào)分隔列表。

spring.mongodb.embedded.version = 2 .6.10#使用Mongo的版本。

#REDIS(RedisProperties)

spring.redis.database = 0 #連接工廠使用的數(shù)據(jù)庫(kù)索引。

spring.redis.host = localhost #Redis服務(wù)器主機(jī)。

spring.redis.password =#redis服務(wù)器的登錄密碼。

spring.redis.pool.max-active = 8 #池在給定時(shí)間可以分配的最大連接數(shù)。使用負(fù)值無(wú)限制。

spring.redis.pool.max-idle = 8 #池中“空閑”連接的最大數(shù)量。使用負(fù)值來(lái)表示無(wú)限數(shù)量的空閑連接。

spring.redis.pool.max-wait = -1#在池耗盡時(shí)拋出異常之前,連接分配應(yīng)阻止的最大時(shí)間量(以毫秒為單位)。使用負(fù)值無(wú)限期地阻止。

spring.redis.pool.min-idle = 0 #要在池中維護(hù)的空閑連接的最小數(shù)目的目標(biāo)。此設(shè)置僅當(dāng)其為正時(shí)才具有效果。

spring.redis.port = 6379 #Redis服務(wù)器端口。

spring.redis.sentinel.master =#Redis服務(wù)器的名稱。

spring.redis.sentinel.nodes =#主機(jī):端口對(duì)的逗號(hào)分隔列表。

spring.redis.timeout = 0 #連接超時(shí),以毫秒為單位。

#----------------------------------------

#集成屬性

#----------------------------------------

#ACTIVEMQ(ActiveMQProperties)

spring.activemq.broker-url =#ActiveMQ代理的URL。默認(rèn)情況下自動(dòng)生成。例如tcp:// localhost:61616

spring.activemq.in-memory = true #指定默認(rèn)代理URL是否應(yīng)該在內(nèi)存中。如果指定了顯式代理,則忽略。

spring.activemq.password =#代理的登錄密碼。

spring.activemq.pooled = false #指定是否應(yīng)創(chuàng)建PooledConnectionFactory而不是常規(guī)ConnectionFactory。

spring.activemq.user =#代理的登錄用戶。

#ARTEMIS(ArtemisProperties)

spring.artemis.embedded.cluster-password =#集群密碼。默認(rèn)情況下,在啟動(dòng)時(shí)隨機(jī)生成。

spring.artemis.embedded.data-directory =#日志文件目錄。如果持久性已關(guān)閉,則不需要。

spring.artemis.embedded.enabled = true #如果Artemis服務(wù)器API可用,則啟用嵌入模式。

spring.artemis.embedded.persistent = false #啟用持久存儲(chǔ)。

spring.artemis.embedded.queues =#在啟動(dòng)時(shí)創(chuàng)建的逗號(hào)分隔的隊(duì)列列表。

spring.artemis.embedded.server-id =#服務(wù)器ID。默認(rèn)情況下,使用自動(dòng)遞增計(jì)數(shù)器。

spring.artemis.embedded.topics =#啟動(dòng)時(shí)創(chuàng)建的逗號(hào)分隔的主題列表。

spring.artemis.host = localhost #Artemis代理主機(jī)。

spring.artemis.mode =#Artemis部署模式,默認(rèn)情況下自動(dòng)檢測(cè)??梢燥@式設(shè)置為“本機(jī)”或“嵌入”。

spring.artemis.port = 61616 #Artemis代理端口。

#SPRING BATCH(BatchProperties)

spring.batch.initializer.enabled = true #如果需要,在啟動(dòng)時(shí)創(chuàng)建所需的批處理表。

spring.batch.job.enabled = true #在啟動(dòng)時(shí)在上下文中執(zhí)行所有Spring Batch作業(yè)。

spring.batch.job.names =#在啟動(dòng)時(shí)執(zhí)行的作業(yè)名的逗號(hào)分隔列表(例如job1,job2)。默認(rèn)情況下,在上下文中找到的所有作業(yè)都將被執(zhí)行。

spring.batch.schema = classpath :org / springframework / batch / core / schema - @@ platform @@。sql#用于初始化數(shù)據(jù)庫(kù)模式的SQL文件的路徑。

spring.batch.table-prefix =#所有批次元數(shù)據(jù)表的表前綴。

#HORNETQ(HornetQProperties)

spring.hornetq.embedded.cluster-password =#群集密碼。默認(rèn)情況下,在啟動(dòng)時(shí)隨機(jī)生成。

spring.hornetq.embedded.data-directory =#日志文件目錄。如果持久性已關(guān)閉,則不需要。

spring.hornetq.embedded.enabled = true #如果HornetQ服務(wù)器API可用,則啟用嵌入模式。

spring.hornetq.embedded.persistent = false #啟用持久存儲(chǔ)。

spring.hornetq.embedded.queues =#在啟動(dòng)時(shí)創(chuàng)建的逗號(hào)分隔的隊(duì)列列表。

spring.hornetq.embedded.server-id =#服務(wù)器ID。默認(rèn)情況下,使用自動(dòng)遞增計(jì)數(shù)器。

spring.hornetq.embedded.topics =#啟動(dòng)時(shí)創(chuàng)建的逗號(hào)分隔的主題列表。

spring.hornetq.host = localhost #HornetQ代理主機(jī)。

spring.hornetq.mode =#HornetQ部署模式,默認(rèn)情況下自動(dòng)檢測(cè)。可以顯式設(shè)置為“本機(jī)”或“嵌入”。

spring.hornetq.port = 5445 #HornetQ代理端口。

#JMS(JmsProperties)

spring.jms.jndi-name =#連接工廠JNDI名稱。設(shè)置時(shí),優(yōu)先于其他連接工廠自動(dòng)配置。

spring.jms.listener.acknowledge-mode =#確認(rèn)容器的模式。默認(rèn)情況下,偵聽(tīng)器使用自動(dòng)確認(rèn)進(jìn)行處理。

spring.jms.listener.auto-startup = true #在啟動(dòng)時(shí)自動(dòng)啟動(dòng)容器。

spring.jms.listener.concurrency =#最小并發(fā)消費(fèi)者數(shù)。

spring.jms.listener.max-concurrency =#最大并發(fā)消費(fèi)者數(shù)。

spring.jms.pub-sub-domain = false #指定默認(rèn)目標(biāo)類型是否為主題。

#RABBIT(RabbitProperties)

spring.rabbitmq.addresses =#客戶端應(yīng)連接到的地址的逗號(hào)分隔列表。

spring.rabbitmq.dynamic = true #創(chuàng)建一個(gè)AmqpAdmin bean。

spring.rabbitmq.host = localhost #RabbitMQ主機(jī)。

spring.rabbitmq.listener.acknowledge-mode =#確認(rèn)容器的模式。

spring.rabbitmq.listener.auto-startup = true #在啟動(dòng)時(shí)自動(dòng)啟動(dòng)容器。

spring.rabbitmq.listener.concurrency =#最小消費(fèi)者數(shù)。

spring.rabbitmq.listener.max-concurrency =#最大消費(fèi)者數(shù)。

spring.rabbitmq.listener.prefetch =#在單個(gè)請(qǐng)求中處理的消息數(shù)。它應(yīng)該大于或等于事務(wù)大小(如果使用)。

spring.rabbitmq.listener.transaction-size =#要在事務(wù)中處理的消息數(shù)。為了獲得最佳結(jié)果,它應(yīng)小于或等于預(yù)取計(jì)數(shù)。

spring.rabbitmq.password =#登錄以對(duì)代理進(jìn)行身份驗(yàn)證。

spring.rabbitmq.port = 5672 #RabbitMQ端口。

spring.rabbitmq.requested-heartbeat =#請(qǐng)求的心跳超時(shí),以秒為單位; 零為零。

spring.rabbitmq.ssl.enabled = false #啟用SSL支持。

spring.rabbitmq.ssl.key-store =#包含SSL證書(shū)的密鑰庫(kù)的路徑。

spring.rabbitmq.ssl.key-store-password =#用于訪問(wèn)密鑰庫(kù)的密碼。

spring.rabbitmq.ssl.trust-store =#持有SSL證書(shū)的信任存儲(chǔ)。

spring.rabbitmq.ssl.trust-store-password =#用于訪問(wèn)信任存儲(chǔ)庫(kù)的密碼。

spring.rabbitmq.username =#登錄用戶以對(duì)代理進(jìn)行身份驗(yàn)證。

spring.rabbitmq.virtual-host =#連接到代理時(shí)要使用的虛擬主機(jī)。

#----------------------------------------

#執(zhí)行器特性

#----------------------------------------

#ENDPOINTS(AbstractEndpoint subclasses)

endpoints.enabled = true #啟用端點(diǎn)。

endpoints.sensitive =#默認(rèn)端點(diǎn)敏感設(shè)置。

endpoints.actuator.enabled = true #啟用端點(diǎn)。

endpoints.actuator.path =#端點(diǎn)URL路徑。

endpoints.actuator.sensitive = false #在端點(diǎn)上啟用安全性。

endpoints.autoconfig.enabled =#啟用端點(diǎn)。

endpoints.autoconfig.id =#端點(diǎn)標(biāo)識(shí)符。

endpoints.autoconfig.sensitive =#標(biāo)記端點(diǎn)是否暴露敏感信息。

endpoints.beans.enabled =#啟用端點(diǎn)。

endpoints.beans.id =#端點(diǎn)標(biāo)識(shí)符。

endpoints.beans.sensitive =#標(biāo)記端點(diǎn)是否暴露敏感信息。

endpoints.configprops.enabled =#啟用端點(diǎn)。

endpoints.configprops.id =#終端標(biāo)識(shí)符。

endpoints.configprops.keys-to-sanitize = password ,secret,key,。* credentials。*,vcap_services#應(yīng)該進(jìn)行清理的密鑰。鍵可以是屬性結(jié)尾的簡(jiǎn)單字符串或正則表達(dá)式。

endpoints.configprops.sensitive =#標(biāo)記端點(diǎn)是否暴露敏感信息。

endpoints.docs.curies.enabled = false #啟用居里生成。

endpoints.docs.enabled = true #啟用執(zhí)行器docs端點(diǎn)。

endpoints.docs.path = / docs#

endpoints.docs.sensitive = false #

endpoints.dump.enabled =#啟用端點(diǎn)。

endpoints.dump.id =#端點(diǎn)標(biāo)識(shí)符。

endpoints.dump.sensitive =#標(biāo)記端點(diǎn)是否暴露敏感信息。

endpoints.env.enabled =#啟用端點(diǎn)。

endpoints.env.id =#端點(diǎn)標(biāo)識(shí)符。

endpoints.env.keys-to-sanitize = password ,secret,key,。* credentials。*,vcap_services#應(yīng)該清理的密鑰。鍵可以是屬性結(jié)尾的簡(jiǎn)單字符串或正則表達(dá)式。

endpoints.env.sensitive =#標(biāo)記端點(diǎn)是否暴露敏感信息。

endpoints.flyway.enabled =#啟用端點(diǎn)。

endpoints.flyway.id =#端點(diǎn)標(biāo)識(shí)符。

endpoints.flyway.sensitive =#標(biāo)記端點(diǎn)是否暴露敏感信息。

endpoints.health.enabled =#啟用端點(diǎn)。

endpoints.health.id =#端點(diǎn)標(biāo)識(shí)符。

endpoints.health.mapping。* =#將健康狀態(tài)映射到HttpStatus代碼。默認(rèn)情況下,注冊(cè)的健康狀態(tài)映射到明智的默認(rèn)值(即UP映射到200)。

endpoints.health.sensitive =#標(biāo)記端點(diǎn)是否暴露敏感信息。

endpoints.health.time-to-live = 1000 #緩存結(jié)果的生存時(shí)間(以毫秒為單位)。

endpoints.info.enabled =#啟用端點(diǎn)。

endpoints.info.id =#端點(diǎn)標(biāo)識(shí)符。

endpoints.info.sensitive =#標(biāo)記端點(diǎn)是否暴露敏感信息。

endpoints.jolokia.enabled = true #啟用Jolokia端點(diǎn)。

endpoints.jolokia.path = / jolokia#端點(diǎn)URL路徑。

endpoints.jolokia.sensitive = true #在端點(diǎn)上啟用安全性。

endpoints.liquibase.enabled =#啟用端點(diǎn)。

endpoints.liquibase.id =#端點(diǎn)標(biāo)識(shí)符。

endpoints.liquibase.sensitive =#標(biāo)記端點(diǎn)是否暴露敏感信息。

endpoints.logfile.enabled = true #啟用端點(diǎn)。

endpoints.logfile.path = / logfile#端點(diǎn)URL路徑。

endpoints.logfile.sensitive = true #在端點(diǎn)上啟用安全性。

endpoints.mappings.enabled =#啟用端點(diǎn)。

endpoints.mappings.id =#端點(diǎn)標(biāo)識(shí)符。

endpoints.mappings.sensitive =#標(biāo)記端點(diǎn)是否暴露敏感信息。

endpoints.metrics.enabled =#啟用端點(diǎn)。

endpoints.metrics.filter.enabled = true #啟用metrics servlet篩選器。

endpoints.metrics.id =#端點(diǎn)標(biāo)識(shí)符。

endpoints.metrics.sensitive =#標(biāo)記端點(diǎn)是否暴露敏感信息。

endpoints.shutdown.enabled =#啟用端點(diǎn)。

endpoints.shutdown.id =#端點(diǎn)標(biāo)識(shí)符。

endpoints.shutdown.sensitive =#標(biāo)記端點(diǎn)是否暴露敏感信息。

endpoints.trace.enabled =#啟用端點(diǎn)。

endpoints.trace.id =#端點(diǎn)標(biāo)識(shí)符。

endpoints.trace.sensitive =#標(biāo)記端點(diǎn)是否暴露敏感信息。

#ENDPOINTS CORS CONFIGURATION(EndpointCorsProperties)

endpoints.cors.allow-credentials =#設(shè)置是否支持憑證。未設(shè)置時(shí),不支持憑據(jù)。

endpoints.cors.allowed-headers =#在請(qǐng)求中允許的逗號(hào)分隔的標(biāo)頭列表。'*'允許所有頭。

endpoints.cors.allowed-methods = GET #允許的逗號(hào)分隔的方法列表。'*'允許所有方法。

endpoints.cors.allowed-origins =#允許的逗號(hào)分隔的起始列表。'*'允許所有起源。未設(shè)置時(shí),禁用CORS支持。

endpoints.cors.exposed-headers =#要在響應(yīng)中包含的標(biāo)頭的逗號(hào)分隔列表。

endpoints.cors.max-age = 1800 ??蛻舳丝梢跃彺鎭?lái)自預(yù)先請(qǐng)求的響應(yīng)的緩存時(shí)間(秒)。

#JMX ENDPOINT(EndpointMBeanExportProperties)

endpoints.jmx.domain =#JMX域名。如果設(shè)置,則使用'spring.jmx.default-domain'的值初始化。

endpoints.jmx.enabled = true #啟用所有端點(diǎn)的JMX導(dǎo)出。

endpoints.jmx.static-names =#附加到表示端點(diǎn)的MBeans的所有ObjectNames的附加靜態(tài)屬性。

endpoints.jmx.unique-names = false #確保在沖突的情況下修改ObjectName。

#JOLOKIA(JolokiaProperties)

jolokia.config。* =#請(qǐng)參閱Jolokia手冊(cè)

#MANAGEMENT HTTP SERVER(ManagementServerProperties)

management.add-application-context-header = true #在每個(gè)響應(yīng)中添加“X-Application-Context”HTTP頭。

management.address =#管理端點(diǎn)應(yīng)綁定的網(wǎng)絡(luò)地址。

management.context-path =#管理端點(diǎn)上下文路徑。例如`/ actuator'

management.port =#管理端點(diǎn)HTTP端口。默認(rèn)情況下,使用與應(yīng)用程序相同的端口。

management.security.enabled = true #啟用安全性。

management.security.role = ADMIN #訪問(wèn)管理端點(diǎn)所需的角色。

management.security.sessions = stateless #會(huì)話創(chuàng)建要使用的策略(始終,永遠(yuǎn),if_required,無(wú)狀態(tài))。

#健康指數(shù)(以前的健康。*)

management.health.db.enabled = true #啟用數(shù)據(jù)庫(kù)運(yùn)行狀況檢查。

management.health.defaults.enabled = true #啟用默認(rèn)運(yùn)行狀況指示器。

management.health.diskspace.enabled = true #啟用磁盤(pán)空間運(yùn)行狀況檢查。

management.health.diskspace.path =#用于計(jì)算可用磁盤(pán)空間的路徑。

management.health.diskspace.threshold = 0 #應(yīng)該可用的最小磁盤(pán)空間(以字節(jié)為單位)。

management.health.elasticsearch.enabled = true #啟用elasticsearch運(yùn)行狀況檢查。

management.health.elasticsearch.indices =#逗號(hào)分隔的索引名稱。

management.health.elasticsearch.response-timeout = 100 #等待集群響應(yīng)的時(shí)間(以毫秒為單位)。

management.health.jms.enabled = true #啟用JMS運(yùn)行狀況檢查。

management.health.mail.enabled = true #啟用郵件運(yùn)行狀況檢查。

management.health.mongo.enabled = true #啟用MongoDB運(yùn)行狀況檢查。

management.health.rabbit.enabled = true #啟用RabbitMQ運(yùn)行狀況檢查。

management.health.redis.enabled = true #啟用Redis運(yùn)行狀況檢查。

management.health.solr.enabled = true #啟用Solr運(yùn)行狀況檢查。

management.health.status.order = DOWN ,OUT_OF_SERVICE,UNKNOWN,UP#按嚴(yán)重性順序列出健康狀態(tài)的逗號(hào)分隔列表。

#TRACING((TraceProperties)

management.trace.include = request -headers,response-headers,errors#要包括在跟蹤中的項(xiàng)目。

#遙控器

shell.auth = simple #認(rèn)證類型。根據(jù)環(huán)境自動(dòng)檢測(cè)。

shell.auth.jaas.domain = my -domain#JAAS域。

shell.auth.key.path =#認(rèn)證密鑰的路徑。這應(yīng)該指向一個(gè)有效的“.pem”文件。

shell.auth.simple.user.name = user #登錄用戶。

shell.auth.simple.user.password =#登錄密碼。

shell.auth.spring.roles = ADMIN #登錄到CRaSH控制臺(tái)的必需角色的逗號(hào)分隔列表。

shell.command-path-patterns = classpath *:/ commands / **,classpath *:/ crash / commands / **#用于查找命令的模式。

shell.command-refresh-interval = -1#掃描更改并在必要時(shí)更新命令(以秒為單位)。

shell.config-path-patterns = classpath *:/ crash / *#用于查找配置的模式。

shell.disabled-commands = jpa *,jdbc *,jndi *#禁用的逗號(hào)分隔的命令列表。

shell.disabled-plugins =#禁用的逗號(hào)分隔的插件列表。某些插件根據(jù)環(huán)境默認(rèn)禁用。

shell.ssh.auth-timeout =#用戶將被提示再次登錄的毫秒數(shù)。

shell.ssh.enabled = true #啟用CRaSH SSH支持。

shell.ssh.idle-timeout =#未使用的連接關(guān)閉之前的毫秒數(shù)。

shell.ssh.key-path =#SSH服務(wù)器密鑰的路徑。

shell.ssh.port = 2000 #SSH端口。

shell.telnet.enabled = false #啟用CRaSH telnet支持。如果TelnetPlugin可用,默認(rèn)情況下啟用。

shell.telnet.port = 5000 #Telnet端口。

#GIT INFO

spring.git.properties =#對(duì)生成的git信息屬性文件的資源引用。

#METRICS EXPORT(MetricExportProperties)

spring.metrics.export.aggregate.key-pattern =#告訴聚合器如何處理源存儲(chǔ)庫(kù)中的鍵的模式。

spring.metrics.export.aggregate.prefix =#如果處于活動(dòng)狀態(tài),則為全局存儲(chǔ)庫(kù)的前綴。

spring.metrics.export.delay-millis = 5000 #導(dǎo)出ticks之間的延遲(以毫秒為單位)。度量標(biāo)準(zhǔn)將按照此延遲的計(jì)劃導(dǎo)出到外部源。

spring.metrics.export.enabled = true #標(biāo)記以啟用度量導(dǎo)出(假設(shè)MetricWriter可用)。

spring.metrics.export.excludes =#要排除的指標(biāo)名稱的模式列表。應(yīng)用后包括。

spring.metrics.export.includes =#要包括的指標(biāo)名稱的模式列表。

spring.metrics.export.redis.key = keys .spring.metrics#redis存儲(chǔ)庫(kù)導(dǎo)出的鍵(如果為活動(dòng)狀態(tài))。

spring.metrics.export.redis.prefix = spring .metrics#redis存儲(chǔ)庫(kù)的前綴(如果活動(dòng))。

spring.metrics.export.send-latest =#根據(jù)不導(dǎo)出不變的度量標(biāo)準(zhǔn)值,關(guān)閉任何可用的優(yōu)化。

spring.metrics.export.statsd.host =#接收導(dǎo)出指標(biāo)的statsd服務(wù)器的主機(jī)。

spring.metrics.export.statsd.port = 8125 #用于接收導(dǎo)出指標(biāo)的statsd服務(wù)器的端口。

spring.metrics.export.statsd.prefix =#statsd導(dǎo)出的指標(biāo)的前綴。

spring.metrics.export.triggers。* =#每個(gè)MetricWriter bean名稱的特定觸發(fā)器屬性。

#----------------------------------------

#DEVTOOLS PROPERTIES

#----------------------------------------

#DEVTOOLS(DevToolsProperties)

spring.devtools.livereload.enabled = true #啟用livereload.com兼容的服務(wù)器。

spring.devtools.livereload.port = 35729 #服務(wù)器端口。

spring.devtools.restart.additional-exclude =#應(yīng)該排除觸發(fā)完全重新啟動(dòng)的其他模式。

spring.devtools.restart.additional-paths =#監(jiān)視更改的其他路徑。

spring.devtools.restart.enabled = true #啟用自動(dòng)重新啟動(dòng)。

spring.devtools.restart.exclude = META -INF / maven / **,META-INF / resources / **,resources / **,static / **,public / ,templates / , / Test.class, / * Tests.class,git.properties#應(yīng)該排除觸發(fā)完全重新啟動(dòng)的模式。

spring.devtools.restart.poll-interval = 1000 #輪詢類路徑更改之間等待的時(shí)間(以毫秒為單位)。

spring.devtools.restart.quiet-period = 400 #觸發(fā)重新啟動(dòng)之前,沒(méi)有任何類路徑更改所需的安靜時(shí)間量(以毫秒為單位)。

spring.devtools.restart.trigger-file =#更改時(shí)將觸發(fā)重新啟動(dòng)檢查的特定文件的名稱。如果沒(méi)有指定任何classpath文件更改將觸發(fā)重新啟動(dòng)。

#REMOTE DEVTOOLS(RemoteDevToolsProperties)

spring.devtools.remote.context-path = /。~~ spring-boot!?#上下文路徑用于處理遠(yuǎn)程連接。

spring.devtools.remote.debug.enabled = true #啟用遠(yuǎn)程調(diào)試支持。

spring.devtools.remote.debug.local-port = 8000 #本地遠(yuǎn)程調(diào)試服務(wù)器端口。

spring.devtools.remote.proxy.host =#用于連接到遠(yuǎn)程應(yīng)用程序的代理的主機(jī)。

spring.devtools.remote.proxy.port =#用于連接到遠(yuǎn)程應(yīng)用程序的代理端口。

spring.devtools.remote.restart.enabled = true #啟用遠(yuǎn)程重新啟動(dòng)。

spring.devtools.remote.secret =#建立連接所需的共享密鑰(啟用遠(yuǎn)程支持所需)。

spring.devtools.remote.secret-header-name = X -AUTH-TOKEN#用于傳輸共享密鑰的HTTP頭。

作者:dadong0505
鏈接:http://www.itdecent.cn/p/57e1396ccd14
來(lái)源:簡(jiǎn)書(shū)
著作權(quán)歸作者所有。商業(yè)轉(zhuǎn)載請(qǐng)聯(lián)系作者獲得授權(quán),非商業(yè)轉(zhuǎn)載請(qǐng)注明出處。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容