摘要:通用的應(yīng)用程序?qū)傩源碇鳈C代理端口嵌入式服務(wù)器配置屬性服務(wù)器應(yīng)該綁定到的網(wǎng)絡(luò)地
通用的應(yīng)用程序?qū)傩?② sendgrid(SendGridAutoConfiguration)
spring.sendgrid.api-key= # SendGrid API key spring.sendgrid.proxy.host= # SendGrid 代理主機 spring.sendgrid.proxy.port= # SendGrid 代理端口嵌入式服務(wù)器配置(ServerProperties)
# ---------------------------------------- # WEB 屬性 # ---------------------------------------- server.address= # 服務(wù)器應(yīng)該綁定到的網(wǎng)絡(luò)地址 server.compression.enabled=false # 是否啟用響應(yīng)壓縮 server.compression.excluded-user-agents= # 從壓縮中排除的user-agent列表 server.compression.mime-types=text/html,text/xml,text/plain,text/css,text/javascript,application/javascript # 應(yīng)該壓縮的以逗號分隔的MIME類型列表 server.compression.min-response-size=2048 # 執(zhí)行壓縮所需的最小"Content-Length"值 server.connection-timeout= # 連接器在關(guān)閉連接之前等待另一個HTTP請求的時間,當(dāng)沒有設(shè)置時,使用連接器特定于容器的默認(rèn)值,使用-1值表示不超時(即不限超時) server.error.include-exception=false # 包括“exception”屬性 server.error.include-stacktrace=never # 何時包含“stacktrace”屬性 server.error.path=/error # error controller的路徑 server.error.whitelabel.enabled=true # 是否啟用瀏覽器中顯示的默認(rèn)error頁面,以防出現(xiàn)服務(wù)器error server.http2.enabled=false # 如果當(dāng)前環(huán)境支持,是否啟用HTTP/2支持 server.jetty.acceptors= # 使用的接收線程數(shù) server.jetty.accesslog.append=false # 添加到日志 server.jetty.accesslog.date-format=dd/MMM/yyyy:HH:mm:ss Z # 請求日志的時間戳格式 server.jetty.accesslog.enabled=false # 啟用訪問日志 server.jetty.accesslog.extended-format=false # 啟用擴展的NCSA格式 server.jetty.accesslog.file-date-format= # 日期格式放置在日志文件名中 server.jetty.accesslog.filename= # 日志文件名,如果沒有指定,日志重定向到“System.err” server.jetty.accesslog.locale= # 請求日志的語言環(huán)境 server.jetty.accesslog.log-cookies=false # 啟用請求cookie的日志記錄 server.jetty.accesslog.log-latency=false # 允許記錄請求處理時間 server.jetty.accesslog.log-server=false # 啟用對請求主機名的日志記錄 server.jetty.accesslog.retention-period=31 # 在滾動日志前幾天將被刪除 server.jetty.accesslog.time-zone=GMT # 請求日志的時區(qū) server.jetty.max-http-post-size=0 # HTTP post或put內(nèi)容的最大大小(以字節(jié)為單位) server.jetty.selectors= # 要使用的選擇器線程數(shù) server.max-http-header-size=0 # HTTP消息頭的最大大小(以字節(jié)為單位) server.port=8080 # 服務(wù)器HTTP端口 server.server-header= # 用于服務(wù)器響應(yīng)header的值(如果為空,則不發(fā)送header) server.use-forward-headers= # 是否應(yīng)該將X-Forwarded-* header應(yīng)用于HttpRequest server.servlet.context-parameters.*= # Servlet上下文初始化參數(shù) server.servlet.context-path= # 應(yīng)用程序的上下文路徑 server.servlet.application-display-name=application # 顯示應(yīng)用程序的名稱 server.servlet.jsp.class-name=org.apache.jasper.servlet.JspServlet # JSP servlet的類名 server.servlet.jsp.init-parameters.*= # 用于配置JSP servlet的Init參數(shù) server.servlet.jsp.registered=true # 是否注冊了JSP servlet server.servlet.path=/ # 主dispatcher servlet的路徑 server.servlet.session.cookie.comment= # 對session cookie的注釋 server.servlet.session.cookie.domain= # session cookie的域 server.servlet.session.cookie.http-only= # “HttpOnly”標(biāo)記session cookie server.servlet.session.cookie.max-age= # session cookie的最大時間,如果沒有指定持續(xù)時間后綴,則將使用秒 server.servlet.session.cookie.name= # Session cookie的名稱 server.servlet.session.cookie.path= # Session cookie的路徑 server.servlet.session.cookie.secure= # Session cookie的“安全”標(biāo)志 server.servlet.session.persistent=false # 是否在重新啟動之間持久化session數(shù)據(jù) server.servlet.session.store-dir= # 用于存儲session數(shù)據(jù)的目錄 server.servlet.session.timeout= # session超時,如果沒有指定持續(xù)時間后綴,則將使用秒 server.servlet.session.tracking-modes= # session跟蹤模式(以下一種或多種模式:“cookie”、“url”、“ssl”) server.ssl.ciphers= # 支持SSL密碼 server.ssl.client-auth= # 是否想要客戶端身份驗證(“want”)或需要(“need”),需要一個信任存儲區(qū) server.ssl.enabled= # 啟用SSL支持 server.ssl.enabled-protocols= # 啟用SSL協(xié)議 server.ssl.key-alias= # 標(biāo)識密鑰存儲庫中的密鑰的別名 server.ssl.key-password= # 用于訪問密鑰存儲庫中的密鑰的密碼 server.ssl.key-store= # 包含SSL證書(通常是jks文件)的密鑰存儲庫的路徑 server.ssl.key-store-password= # 用于訪問密鑰存儲庫的密碼 server.ssl.key-store-provider= # 密鑰存儲庫的提供程序 server.ssl.key-store-type= # 密鑰存儲庫的類型 server.ssl.protocol=TLS # 使用SSL協(xié)議 server.ssl.trust-store= # 托管SSL證書的信任存儲區(qū) server.ssl.trust-store-password= # 用于訪問信任存儲區(qū)的密碼 server.ssl.trust-store-provider= # 信任存儲區(qū)的提供程序 server.ssl.trust-store-type= # 信任存儲區(qū)的類型 server.tomcat.accept-count=0 # Maximum queue length for incoming connection requests when all possible request processing threads are in use. server.tomcat.accesslog.buffered=true # Whether to buffer output such that it is flushed only periodically. server.tomcat.accesslog.directory=logs # Directory in which log files are created. Can be absolute or relative to the Tomcat base dir. server.tomcat.accesslog.enabled=false # Enable access log. server.tomcat.accesslog.file-date-format=.yyyy-MM-dd # Date format to place in the log file name. server.tomcat.accesslog.pattern=common # Format pattern for access logs. server.tomcat.accesslog.prefix=access_log # Log file name prefix. server.tomcat.accesslog.rename-on-rotate=false # Whether to defer inclusion of the date stamp in the file name until rotate time. server.tomcat.accesslog.request-attributes-enabled=false # Set request attributes for the IP address, Hostname, protocol, and port used for the request. server.tomcat.accesslog.rotate=true # Whether to enable access log rotation. server.tomcat.accesslog.suffix=.log # Log file name suffix. server.tomcat.additional-tld-skip-patterns= # Comma-separated list of additional patterns that match jars to ignore for TLD scanning. server.tomcat.background-processor-delay=30s # Delay between the invocation of backgroundProcess methods. If a duration suffix is not specified, seconds will be used. server.tomcat.basedir= # Tomcat base directory. If not specified, a temporary directory is used. 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} # Regular expression matching trusted IP addresses. server.tomcat.max-connections=0 # Maximum number of connections that the server accepts and processes at any given time. server.tomcat.max-http-header-size=0 # Maximum size, in bytes, of the HTTP message header. server.tomcat.max-http-post-size=0 # Maximum size, in bytes, of the HTTP post content. server.tomcat.max-threads=0 # Maximum number of worker threads. server.tomcat.min-spare-threads=0 # Minimum number of worker threads. server.tomcat.port-header=X-Forwarded-Port # Name of the HTTP header used to override the original port value. server.tomcat.protocol-header= # Header that holds the incoming protocol, usually named "X-Forwarded-Proto". server.tomcat.protocol-header-https-value=https # Value of the protocol header indicating whether the incoming request uses SSL. server.tomcat.redirect-context-root= # Whether requests to the context root should be redirected by appending a / to the path. server.tomcat.remote-ip-header= # Name of the HTTP header from which the remote IP is extracted. For instance, `X-FORWARDED-FOR`. server.tomcat.resource.cache-ttl= # Time-to-live of the static resource cache. server.tomcat.uri-encoding=UTF-8 # Character encoding to use to decode the URI. server.tomcat.use-relative-redirects= # Whether HTTP 1.1 and later location headers generated by a call to sendRedirect will use relative or absolute redirects. server.undertow.accesslog.dir= # Undertow access log directory. server.undertow.accesslog.enabled=false # Whether to enable the access log. server.undertow.accesslog.pattern=common # Format pattern for access logs. server.undertow.accesslog.prefix=access_log. # Log file name prefix. server.undertow.accesslog.rotate=true # Whether to enable access log rotation. server.undertow.accesslog.suffix=log # Log file name suffix. server.undertow.buffer-size= # Size of each buffer, in bytes. server.undertow.direct-buffers= # Whether to allocate buffers outside the Java heap. server.undertow.io-threads= # Number of I/O threads to create for the worker. server.undertow.eager-filter-init=true # Whether servlet filters should be initialized on startup. server.undertow.max-http-post-size=0 # Maximum size, in bytes, of the HTTP post content. server.undertow.worker-threads= # Number of worker threads.freemarker(FreeMarkerProperties)
# FREEMARKER (FreeMarkerProperties) spring.freemarker.allow-request-override=false # Whether HttpServletRequest attributes are allowed to override (hide) controller generated model attributes of the same name. spring.freemarker.allow-session-override=false # Whether HttpSession attributes are allowed to override (hide) controller generated model attributes of the same name. spring.freemarker.cache=false # Whether to enable template caching. spring.freemarker.charset=UTF-8 # Template encoding. spring.freemarker.check-template-location=true # Whether to check that the templates location exists. spring.freemarker.content-type=text/html # Content-Type value. spring.freemarker.enabled=true # Whether to enable MVC view resolution for this technology. spring.freemarker.expose-request-attributes=false # Whether all request attributes should be added to the model prior to merging with the template. spring.freemarker.expose-session-attributes=false # Whether all HttpSession attributes should be added to the model prior to merging with the template. spring.freemarker.expose-spring-macro-helpers=true # Whether to expose a RequestContext for use by Spring"s macro library, under the name "springMacroRequestContext". spring.freemarker.prefer-file-system-access=true # Whether to prefer file system access for template loading. File system access enables hot detection of template changes. spring.freemarker.prefix= # Prefix that gets prepended to view names when building a URL. spring.freemarker.request-context-attribute= # Name of the RequestContext attribute for all views. spring.freemarker.settings.*= # Well-known FreeMarker keys which are passed to FreeMarker"s Configuration. spring.freemarker.suffix=.ftl # Suffix that gets appended to view names when building a URL. spring.freemarker.template-loader-path=classpath:/templates/ # Comma-separated list of template paths. spring.freemarker.view-names= # White list of view names that can be resolved.groovy template(GroovyTemplateProperties)
# GROOVY TEMPLATES (GroovyTemplateProperties) spring.groovy.template.allow-request-override=false # Whether HttpServletRequest attributes are allowed to override (hide) controller generated model attributes of the same name. spring.groovy.template.allow-session-override=false # Whether HttpSession attributes are allowed to override (hide) controller generated model attributes of the same name. spring.groovy.template.cache=false # Whether to enable template caching. spring.groovy.template.charset=UTF-8 # Template encoding. spring.groovy.template.check-template-location=true # Whether to check that the templates location exists. spring.groovy.template.configuration.*= # See GroovyMarkupConfigurer spring.groovy.template.content-type=text/html # Content-Type value. spring.groovy.template.enabled=true # Whether to enable MVC view resolution for this technology. spring.groovy.template.expose-request-attributes=false # Whether all request attributes should be added to the model prior to merging with the template. spring.groovy.template.expose-session-attributes=false # Whether all HttpSession attributes should be added to the model prior to merging with the template. spring.groovy.template.expose-spring-macro-helpers=true # Whether to expose a RequestContext for use by Spring"s macro library, under the name "springMacroRequestContext". spring.groovy.template.prefix= # Prefix that gets prepended to view names when building a URL. spring.groovy.template.request-context-attribute= # Name of the RequestContext attribute for all views. spring.groovy.template.resource-loader-path=classpath:/templates/ # Template path. spring.groovy.template.suffix=.tpl # Suffix that gets appended to view names when building a URL. spring.groovy.template.view-names= # White list of view names that can be resolved.spring hateoas(HateoasProperties)
# SPRING HATEOAS (HateoasProperties) spring.hateoas.use-hal-as-default-json-media-type=true # Whether application/hal+json responses should be sent to requests that accept application/json.HTTP消息轉(zhuǎn)換
# HTTP message conversion spring.http.converters.preferred-json-mapper= # Preferred JSON mapper to use for HTTP message conversion. By default, auto-detected according to the environment.HTTP編碼
# HTTP message conversion spring.http.converters.preferred-json-mapper= # Preferred JSON mapper to use for HTTP message conversion. By default, auto-detected according to the environment.
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請注明本文地址:http://systransis.cn/yun/71284.html
摘要:參考指南使你可以輕松地創(chuàng)建可運行的獨立的生產(chǎn)級的基于的應(yīng)用程序,我們對平臺和第三方庫有自己的看法,這樣你就可以以最低限度工作開始了,大多數(shù)應(yīng)用程序都需要很少的配置。文檔本節(jié)簡要概述了參考文檔,它充當(dāng)文檔其余部分的映射。 Spring Boot 參考指南 Spring Boot使你可以輕松地創(chuàng)建可運行的獨立的、生產(chǎn)級的基于Spring的應(yīng)用程序,我們對Spring平臺和第三方庫有自己的看...
摘要:那接下來,我們一起來閱讀一下官網(wǎng)。版本號表示是穩(wěn)定版本推薦一篇版本號解釋說明版本號解釋說明關(guān)于問題這里可以提交中的問題。二總結(jié)通過官網(wǎng)的了解,我們可以知道的版本號說明,相關(guān)說明文檔,簡單樣例,源碼。 showImg(https://segmentfault.com/img/remote/1460000019536204); 官網(wǎng)是我們學(xué)習(xí)的第一手資料,我們不能忽視它。卻往往因為是英文版...
摘要:系列文章更新計劃列表主要對一些中常用的框架進(jìn)行簡單的介紹及快速上手,外加相關(guān)資料的收集更新列表會不定期的加入新的內(nèi)容以進(jìn)行擴充,如果你對此感興趣可以站內(nèi)聯(lián)系我。 導(dǎo)讀: 從第一次接觸Spring Boot 至今已經(jīng)有半年多了,在這期間也瀏覽了許多和Spring Boot 相關(guān)的書籍及文章,公司里面的許多項目也一直在使用Spring Boot。關(guān)于Spring Boot的一些看法:Spr...
摘要:第章附錄附錄通用的應(yīng)用程序?qū)傩钥梢栽谖募募?,或作為命令行開關(guān),中指定各種屬性,本附錄提供了一個通用的屬性列表和對使用它們的底層類的引用。本示例文件僅作為指南,不要將整個內(nèi)容復(fù)制粘貼到應(yīng)用程序中,相反,只選擇你需要的屬性。 第X章. 附錄 附錄A. 通用的應(yīng)用程序?qū)傩?可以在application.properties文件,application.yml文件,或作為命令行開關(guān),中指定...
摘要:還自動配置發(fā)送和接收消息所需的基礎(chǔ)設(shè)施。支持是一個輕量級的可靠的可伸縮的可移植的消息代理,基于協(xié)議,使用通過協(xié)議進(jìn)行通信。 32. 消息傳遞 Spring框架為與消息傳遞系統(tǒng)集成提供了廣泛的支持,從使用JmsTemplate簡化的JMS API到使用完整的基礎(chǔ)設(shè)施異步接收消息,Spring AMQP為高級消息隊列協(xié)議提供了類似的特性集。Spring Boot還為RabbitTempla...
閱讀 1255·2023-04-25 18:57
閱讀 2142·2023-04-25 16:28
閱讀 3947·2021-11-24 09:39
閱讀 3641·2021-11-16 11:45
閱讀 1831·2021-10-13 09:40
閱讀 1272·2019-08-30 15:52
閱讀 1725·2019-08-30 10:57
閱讀 671·2019-08-29 16:55