SpringBoot常用屬性配置
- Application.properties
# ===================================================================
# 通用SpringBoot屬性
# ===================================================================
# ----------------------------------------
# 核心屬性
# ----------------------------------------
debug=false #啟用調試日志。.
trace=false # 啟用跟蹤日志.
#日志記錄
#logging.config=#日志配置文件的位置。例如,logback的“classpath:logback.xml”。
# logging.exception-conversion-word==%wex#記錄異常時使用的轉換字。
#logging.file=#日志文件名(例如,“myapp.log”)。名稱可以是確切的位置或相對于當前目錄。
#logging.file.max-history= 0#。保存歸檔日志文件的最大值。僅支持默認的logback設置。
#logging.file.max-size = 10MB #最大日志文件大小。僅支持默認的logback設置。
#logging.group.*= #記錄組以同時快速更改多個記錄器。例如,
# logging.level.db=org.hibernate,org.springframework.jdbc
#logging.path=#日志文件的位置。例如,`/var/log`。
#logging.pattern.console=#將模式輸出到控制臺。僅支持默認的日志恢復設置。
#logging.pattern.date format=yyyy-mm-dd hh:mm:ss.sss#日志日期格式的追加器模式。僅支持默認的日志恢復設置。
#logging.pattern.file=#輸出到文件的追加程序模式。僅支持默認的日志恢復設置。#logging.pattern.level=%5p#日志級別的追加程序模式。僅支持默認的日志恢復設置。#logging.register shutdown hook=false#在日志系統初始化時為其注冊一個關閉鉤子。
# AOP
#spring.aop.auto=true #添加@enablespectjautoproxy。
#spring.aop.proxy-target-class=True #是否創建基于子類的(CGLIB)代理,而不是基于JAVA標準接口代理(FALSE)。
# IDENTITY (ContextIdApplicationContextInitializer)
spring.application.name= # 應用程序名稱.
# ADMIN (SpringApplicationAdminJmxAutoConfiguration)
spring.application.admin.enabled=false # 是否為應用程序啟用管理功能.
spring.application.admin.jmx-name=org.springframework.boot:type=Admin,name=SpringApplication #應用程序admin mbean的jmx名稱.
# 自動配置
spring.autoconfigure.exclude= # 要排除的自動配置類.
# BANNER
spring.banner.charset=UTF-8 # 標題文件編碼.
spring.banner.location=classpath:banner.txt # 橫幅文本資源位置.
spring.banner.image.location=classpath:banner.gif # 橫幅圖像文件位置(也可以使用jpg或png)。.
spring.banner.image.width=76 # 橫幅圖像的寬度(字符).
spring.banner.image.height= #橫幅圖像的高度(以字符為單位)(默認值基于圖像高度).
spring.banner.image.margin=2 # 以字符表示的左側圖像邊距.
spring.banner.image.invert=false # 是否應為深色終端主題反轉圖像.
# Spring核心
spring.beaninfo.ignore=true # 是否跳過beaninfo類的搜索.
# Spring緩存 (緩存配置)
spring.cache.cache-names= # 要創建的緩存名稱的逗號分隔列表(如果基礎緩存管理器支持)spring.cache.caffeine.spec= # 用于創建緩存的規范。有關規范格式的詳細信息,請參見caffinespec.
spring.cache.couchbase.expiration= # 條目過期。默認情況下,條目永不過期。請注意,此值最終轉換為秒.
spring.cache.ehcache.config= # 用于初始化ehcache的配置文件的位置.
spring.cache.infinispan.config= # 用于初始化infinispan的配置文件的位置.
spring.cache.jcache.config= # 用于初始化緩存管理器的配置文件的位置.
spring.cache.jcache.provider= # 用于檢索符合jsr-107的緩存管理器的cachingprovider實現的完全限定名。僅當類路徑上有多個jsr-107實現可用時才需要.
spring.cache.redis.cache-null-values=true # 允許緩存空值.
spring.cache.redis.key-prefix= # Key 前綴.
spring.cache.redis.time-to-live= #條目過期。默認情況下,條目永不過期.
spring.cache.redis.use-key-prefix=true # 寫入redis時是否使用key前綴.
spring.cache.type= # 緩存類型。默認情況下,根據環境自動檢測.
# Spring配置 - 僅使用環境屬性 (ConfigFileApplicationListener)
spring.config.additional-location= # 除了默認值之外,還使用配置文件位置.
spring.config.location= # 替換默認值的配置文件位置.
spring.config.name=application # 配置文件名稱.
# HAZELCAST (Hazelcast配置)
spring.hazelcast.config= # 用于初始化Hazelcast的配置文件的位置.
#項目信息(ProjectInfoProperties)
spring.info.build.encoding=UTF-8 #文件編碼.
spring.info.build.location=classpath:META-INF/build-info.properties #生成的build-info.properties文件的位置.
spring.info.git.encoding=UTF-8 #文件編碼.
spring.info.git.location=classpath:git.properties #生成的git.properties文件的位置.
# JMX
spring.jmx.default-domain= # JMX域名.
spring.jmx.enabled=true #向jmx域公開管理bean.
spring.jmx.server=mbeanServer # MBeanServer bean名稱.
spring.jmx.unique-names=false #是否應確保唯一的運行時對象名.
# Email (MailProperties)
spring.mail.default-encoding=UTF-8 # Default MimeMessage 編碼.
spring.mail.host= # SMTP服務器主機。例如, `smtp.example.com`.
spring.mail.jndi-name= # Session JNDI名字。設置后,優先于其他會話設置.
spring.mail.password= # SMTP服務器登錄密碼.
spring.mail.port= # SMTP 服務器 端口.
spring.mail.properties.*= # 其他JavaMail會話屬性.
spring.mail.protocol=smtp # SMTP服務器使用的協議.
spring.mail.test-connection=false # 是否在啟動時測試郵件服務器是否可用.
spring.mail.username= # SMTP服務器的登錄用戶.
# 應用設置 (SpringApplication)
spring.main.allow-bean-definition-overriding=false # 是否允許通過定義與現有定義同名的定義來定義bean定義。.
spring.main.banner-mode=console # 用于在應用程序運行時顯示橫幅的模式.
spring.main.sources= # 要包含在applicationcontext中的源(類名、包名或xml資源位置).
spring.main.web-application-type= # 用于顯式請求特定類型的Web應用程序的標志。如果未設置,則根據類路徑自動檢測。
# 文件字符編碼 (FileEncodingApplicationListener)
spring.mandatory-file-encoding= # 應用程序必須使用的預期字符編碼.
# 國際化(MessageSourceProperties)
spring.messages.always-use-message-format=false # 是否始終應用MessageFormat規則,甚至解析沒有參數的消息。.
spring.messages.basename=messages # 以逗號分隔的基名列表(本質上是一個完全限定的類路徑位置),每個基名都遵循resourcebundle約定,并對基于斜杠的位置提供寬松的支持.
spring.messages.cache-duration= #加載的資源包文件緩存持續時間。未設置時,將永遠緩存捆綁包。如果未指定持續時間后綴,則將使用秒.
spring.messages.encoding=UTF-8 # 消息包編碼.
spring.messages.fallback-to-system-locale=true # 如果找不到特定區域設置的文件,是否返回到系統區域設置。.
spring.messages.use-code-as-default-message=false # 是否將消息代碼用作默認消息,而不是引發“NoSuchMessageException”。僅在開發期間推薦.
# 輸出
spring.output.ansi.enabled=detect # 配置ANSI輸出
# PID文件(ApplicationPidFileWriter)
spring.pid.fail-on-write-error= # 如果使用applicationpidfilewriter但無法寫入pid文件,則失敗.
spring.pid.file= # 要寫入的pid文件的位置(如果使用applicationpidfilewriter)。
# 配置文件
spring.profiles.active= # 活動配置文件的逗號分隔列表。可由命令行開關重寫.
spring.profiles.include= # 無條件激活指定的以逗號分隔的配置文件列表(如果使用yaml,則為配置文件列表).
# 定時調度 (QuartzProperties)
spring.quartz.auto-startup=true # 初始化后是否自動啟動計劃程序.
spring.quartz.jdbc.comment-prefix=-- # SQL初始化腳本中單行注釋的前綴.
spring.quartz.jdbc.initialize-schema=embedded # Database schema 初始化模式.
spring.quartz.jdbc.schema=classpath:org/quartz/impl/jdbcjobstore/tables_@@platform@@.sql #用于初始化Database schema的SQL文件的路徑.
spring.quartz.job-store-type=memory # 定時作業存儲類型.
spring.quartz.overwrite-existing-jobs=false #配置的作業是否應覆蓋現有作業定義.
spring.quartz.properties.*= #其他定時調度程序屬性.
spring.quartz.scheduler-name=quartzScheduler #調度員名稱.
spring.quartz.startup-delay=0s #初始化完成后啟動計劃程序的延遲.
spring.quartz.wait-for-jobs-to-complete-on-shutdown=false #是否等待關閉時運行的作業完成.
# 反應器 (ReactorCoreProperties)
spring.reactor.stacktrace-mode.enabled=false # reactor是否應該在運行時收集stacktrace信息.
#發送網格(SendGridAutoConfiguration)
spring.sendgrid.api-key= # SendGrid API密鑰.
spring.sendgrid.proxy.host= # SendGrid代理主機.
spring.sendgrid.proxy.port= # SendGrid代理端口.
#任務執行(TaskExecutionProperties)
spring.task.execution.pool.allow-core-thread-timeout=true #是否允許核心線程超時。這使得池的動態增長和收縮成為可能.
spring.task.execution.pool.core-size=8 #核心線程數.
spring.task.execution.pool.keep-alive=60s #線程在終止前可以保持空閑的時間限制.
spring.task.execution.pool.max-size= #允許的最大線程數。如果任務正在填滿隊列,則池可以擴展到該大小以適應負載。如果隊列是無限的,則忽略.
spring.task.execution.pool.queue-capacity= #隊列容量。無限容量不會增加池,因此會忽略“最大-大小”屬性。
spring.task.execution.thread-name-prefix=task- #用于新創建線程的名稱的前綴。.
#任務調度(TaskSchedulingProperties)
spring.task.scheduling.pool.size=1 #允許的最大線程數.
spring.task.scheduling.thread-name-prefix=scheduling- #用于新創建線程名稱的前綴.
# ----------------------------------------
# Web屬性 配置
# ----------------------------------------
#嵌入式服務器配置(ServerProperties)
server.address= #服務器應綁定到的網絡地址.
server.compression.enabled=false #當響應壓縮啟用.
server.compression.excluded-user-agents= #不應壓縮其響應的用戶代理的逗號分隔列表.
server.compression.mime-types=text/html,text/xml,text/plain,text/css,text/JavaScript,application/javascript,application/json,application/xml #壓縮的mime類型的逗號分隔列表.
server.compression.min-response-size=2KB #執行壓縮所需的最小“內容-長度”值.
server.connection-timeout= #連接器在關閉連接之前等待另一個http請求的時間。未設置時,將使用連接器的容器特定默認值。使用-1值表示沒有(即無限)超時.
server.error.include-exception=false #包含“異常”屬性.
server.error.include-stacktrace=never #何時包含“stacktrace”屬性.
server.error.path=/error #錯誤控制器的路徑
server.error.whitelabel.enabled=true #服務器出錯時是否啟用瀏覽器中顯示的默認錯誤頁.
server.http2.enabled=false #如果當前環境支持,是否啟用http/2支持.
server.max-http-header-size=8KB # http消息頭的最大大小.
server.port=8080 #服務器http端口。.
server.server-header= #用于服務器響應頭的值(如果為空,則不發送頭)。.
server.use-forward-headers= #是否應將x-forwarded-*頭應用于httprequest。.
server.servlet.context-parameters.*= # Servlet上下文初始化參數.
server.servlet.context-path= #應用程序的上下文路徑.
server.servlet.application-display-name=application #顯示應用程序名稱.
server.servlet.jsp.class-name=org.Apache.jasper.servlet.JspServlet #用于jsp的servlet的類名.
server.servlet.jsp.init-parameters.*= #用于配置jsp servlet的init參數.
server.servlet.jsp.registered=true # jsp servlet是否已注冊.
server.servlet.session.cookie.comment= # session cookie的注釋.
server.servlet.session.cookie.domain= # session cookie的域.
server.servlet.session.cookie.http-only= #是否對session cookies使用“httponly”cookies.
server.servlet.session.cookie.max-age= # session cookie的最長使用期限。如果未指定持續時間后綴,則將使用秒數。
server.servlet.session.cookie.name= # Session cookie 名稱.
server.servlet.session.cookie.path= # session cookie的路徑.
server.servlet.session.cookie.secure= #是否始終將session cookie標記為安全.
server.servlet.session.persistent=false #是否在重新啟動之間保留會話數據.
server.servlet.session.store-dir= #用于存儲會話數據的目錄。.
server.servlet.session.timeout=30m #會話超時。如果未指定持續時間后綴,則將使用秒.
server.servlet.session.tracking-modes= #會話跟蹤模式.
server.ssl.ciphers= #支持的SSL加密.
server.ssl.client-auth= #客戶端身份驗證模式.
server.ssl.enabled=true #是否啟用SSL支持.
server.ssl.enabled-protocols= #啟用的SSL協議.
server.ssl.key-alias= #標識密鑰存儲中的密鑰的別名.
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協議.
server.ssl.trust-store= #保存ssl證書的信任存儲.
server.ssl.trust-store-password= #用于訪問信任存儲的密碼
server.ssl.trust-store-provider= #信任存儲的提供程序.
server.ssl.trust-store-type= #信任存儲區的類型.
server.Tomcat.accept-count=100 #當所有可能的請求處理線程都在使用時,傳入連接請求的最大隊列長度.
server.tomcat.accesslog.buffered=true #是否緩沖輸出以使其僅定期刷新.
server.tomcat.accesslog.directory=logs #創建日志文件的目錄。可以是絕對的,也可以是相對于tomcat基本目錄的。.
server.tomcat.accesslog.enabled=false #啟用訪問日志
server.tomcat.accesslog.file-date-format=.yyyy-MM-dd #要放入日志文件名中的日期格式.
server.tomcat.accesslog.pattern=common #訪問日志的格式模式.
server.tomcat.accesslog.prefix=access_log #日志文件名前綴.
server.tomcat.accesslog.rename-on-rotate=false #是否將在文件名中包含日期戳推遲到輪換時間.
server.tomcat.accesslog.request-attributes-enabled=false #設置用于請求的IP地址、主機名、協議和端口的請求屬性。.
server.tomcat.accesslog.rotate=true #是否啟用訪問日志旋轉.
server.tomcat.accesslog.suffix=.log #日志文件名后綴.
server.tomcat.additional-tld-skip-patterns= #逗號分隔的附加模式列表,這些模式與TLD掃描要忽略的JAR相匹配.
server.tomcat.background-processor-delay=10s #調用backgroundprocess方法之間的延遲。如果未指定持續時間后綴,則將使用秒.
server.tomcat.basedir= # Tomcat基本目錄。如果未指定,則使用臨時目錄.
#與要信任的代理相匹配的正則表達式.
server.tomcat.max-connections=10000 #服務器在任何給定時間接受和處理的最大連接數
server.tomcat.max-http-post-size=2MB # HTTP郵件內容的最大大小
server.tomcat.max-swallow-size=2MB #最大請求吞咽量.
server.tomcat.max-threads=200 #工作線程的最大數量.
server.tomcat.min-spare-threads=10 #最小工作線程數.
server.tomcat.port-header= x-forwarded-port#用于重寫原始端口值的http頭的名稱。。.
server.tomcat.protocol-header= # X-Forwarded-Port #包含傳入協議的頭,通常命名為“x-forwarded-proto”.
server.tomcat.protocol-header-https-value=https #指示傳入請求是否使用SSL的協議頭的值。.
server.tomcat.redirect-context-root=true #是否應通過向路徑追加/來重定向對上下文根的請求。
server.tomcat.remote-ip-header= #從中提取遠程IP的HTTP頭的名稱。例如,“x-forwarded-for”server.tomcat.resource.allow-caching=true #是否允許此Web應用程序使用靜態資源緩存。server.tomcat.resource.cache-ttl= #靜態資源緩存的生存時間.
server.tomcat.uri-encoding=UTF-8 #用于解碼uri的字符編碼.
server.tomcat.use-relative-redirects= #對sendRedirect的調用生成的http 1.1和更高版本的位置頭是否將使用相對重定向或絕對重定向。
server.undertow.accesslog.dir= #訪問日志目錄下.
server.undertow.accesslog.enabled=false #是否啟用訪問日志.
server.undertow.accesslog.pattern=common #訪問日志的格式模式。
server.undertow.accesslog.prefix=access_log. #日志文件名前綴。
server.undertow.accesslog.rotate=true #是否啟用訪問日志旋轉。
server.undertow.accesslog.suffix=log #日志文件名后綴。
server.undertow.buffer-size= #每個緩沖區的大小。
server.undertow.direct-buffers= #是否在Java堆外分配緩沖區。默認值是從JVM可用的最大內存量派生的。
server.undertow.eager-filter-init=true #啟動時是否應初始化servlet篩選器。.
server.undertow.io-threads= #要為工作線程創建的I/O線程數。默認值來自可用處理器的數量。server.undertow.max-http-post-size=-1B # http post內容的最大大小。默認值為-1時,大小不受限制。server.undertow.worker-threads= #工作線程數。默認值是I/O線程數的8倍。
# FreeMarker (FreeMarkerProperties)
spring.freemarker.allow-request-override=false #是否允許httpservletrequest屬性重寫(隱藏)控制器生成的同名模型屬性。
spring.freemarker.allow-session-override=false #是否允許HttpSession屬性重寫(隱藏)控制器生成的同名模型屬性。
spring.freemarker.cache=false #是否啟用模板緩存。
spring.freemarker.charset=UTF-8 #模板編碼。.
spring.freemarker.check-template-location=true #是否檢查模板位置是否存在.
spring.freemarker.content-type=text/html #內容類型值.
spring.freemarker.enabled=true #是否為此技術啟用MVC視圖解析.
spring.freemarker.expose-request-attributes=false #是否應在與模板合并之前將所有請求屬性添加到模型中。.
spring.freemarker.expose-session-attributes=false #是否應在與模板合并之前將所有httpsession屬性添加到模型中.
spring.freemarker.expose-spring-macro-helpers=true #是否以“spring macro requestcontext”的名稱公開requestcontext供spring的宏庫使用
spring.freemarker.prefer-file-system-access=true #是否首選文件系統訪問以加載模板。文件系統訪問允許熱檢測模板更改.
spring.freemarker.prefix= #在生成URL時為查看名稱而預先設置的前綴.
spring.freemarker.request-context-attribute= #所有視圖的requestContext屬性的名稱.
spring.freemarker.settings.*= #傳遞給freemarker配置的眾所周知的freemarker鍵。spring.freemarker.suffix=.ftl #在生成URL時附加到視圖名稱的后綴。.
spring.freemarker.template-loader-path=classpath:/templates/ #以逗號分隔的模板路徑列表。.
spring.freemarker.view-names= #可以解析的視圖名稱的白名單。.
# HTTP (HttpProperties)
spring.http.converters.preferred-json-mapper= #用于http消息轉換的首選json映射程序。默認情況下,根據環境自動檢測。.
spring.http.encoding.charset=UTF-8 # HTTP請求和響應的字符集。如果未顯式設置,則添加到“Content-Type”頭。.
spring.http.encoding.enabled=true #是否啟用http編碼支持.
spring.http.encoding.force= #是否強制對http請求和響應上配置的字符集進行編碼.
spring.http.encoding.force-request= #是否強制對http請求上配置的字符集進行編碼。未指定“force”時默認為true.
spring.http.encoding.force-response= #是否強制對http響應上配置的字符集進行編碼.
spring.http.encoding.mapping= #要在其中編碼映射的區域設置.
spring.http.log-request-details=false #是否允許在調試和跟蹤級別記錄(可能敏感的)請求詳細信息。.
# MULTIPART (MultipartProperties)
spring.servlet.multipart.enabled=true #是否啟用對多部分上傳的支持.
spring.servlet.multipart.file-size-threshold=0B #將文件寫入磁盤的閾值.
spring.servlet.multipart.location= #上傳文件的存儲位置.
spring.servlet.multipart.max-file-size=1MB #最大文件大小.
spring.servlet.multipart.max-request-size=10MB #最大請求大小.
spring.servlet.multipart.resolve-lazily=false #是否在文件或參數訪問時延遲解析多部分請求。.
# JACKSON (JacksonProperties)
spring.jackson.date-format= #日期格式字符串或完全限定的日期格式類名。例如,, `yyyy-MM-dd HH:mm:ss`.
spring.jackson.default-property-inclusion= #控制序列化期間屬性的包含。使用jackson的jsoninclude.include枚舉中的一個值配置.
spring.jackson.deserialization.*= # jackson on/off特性影響java對象反序列化的方式.
spring.jackson.generator.*= # Jackson開/關功能生成器.
spring.jackson.joda-date-time-format= # joda日期時間格式字符串。如果未配置,則使用“date-format”作為回退(如果使用格式字符串配置)。
spring.jackson.locale= #本地使用的格式。
spring.jackson.mapper.*= # Jackson通用開/關功能.
spring.jackson.parser.*= #針對解析器的jackson開/關功能.
spring.jackson.property-naming-strategy= # Jackson's 財產管理的一個常數。也可以是propertynamingstrategy子類的完全限定類名.
spring.jackson.serialization.*= # jackson on/off特性影響java對象的序列化方式
spring.jackson.time-zone= #格式化日期時使用的時區。例如,“中國/北京”或“GMT+8”.
spring.jackson.visibility.*= # jackson可見性閾值,可用于限制自動檢測哪些方法(和字段).
# GSON (GsonProperties)
spring.gson.date-format= #序列化日期對象時使用的格式.
spring.gson.disable-html-escaping= #是否禁用HTML字符的轉義,如“<”、“>”等。.
spring.gson.disable-inner-class-serialization= #序列化期間是否排除內部類.
spring.gson.enable-complex-map-key-serialization= #是否啟用復雜映射鍵(即非基本數據類型映射)的序列化.
spring.gson.exclude-fields-without-expose-annotation= #是否從序列化或反序列化的考慮中排除所有沒有“expose”注釋的字段.
spring.gson.field-naming-policy= #在序列化和反序列化期間應應用于對象字段的命名策略.
spring.gson.generate-non-executable-json= #是否通過使用特定文本預先輸出輸出來生成不可執行JSON.
spring.gson.lenient= #對解析不符合RFC 4627的json是否寬容.
spring.gson.long-serialization-policy= # Long 類型和long 類型的序列化策略.
spring.gson.pretty-printing= #是否輸出適合頁面打印的序列化json.
spring.gson.serialize-nulls= #是否序列化空字段.
# JERSEY (JerseyProperties)
spring.jersey.application-path= # Path that serves as the base URI for the application. If specified, overrides the value of "@ApplicationPath".
spring.jersey.filter.order=0 # Jersey filter chain order.
spring.jersey.init.*= # Init parameters to pass to Jersey through the servlet or filter.
spring.jersey.servlet.load-on-startup=-1 # Load on startup priority of the Jersey servlet.
spring.jersey.type=servlet # Jersey integration type.
# SPRING LDAP (LdapProperties)
spring.ldap.anonymous-read-only=false #只讀操作是否應使用匿名環境.
spring.ldap.base= #所有操作都應源自的基本后綴.
spring.ldap.base-environment.*= # LDAP規范設置.
spring.ldap.password= #服務器登錄密碼.
spring.ldap.urls= #服務器的LDAP URL.
spring.ldap.username= #服務器的登錄用戶名.
#嵌入的LDAP (EmbeddedLdapProperties)
spring.ldap.embedded.base-dn= #基本DNS列表.
spring.ldap.embedded.credential.username= #嵌入式LDAP用戶名.
spring.ldap.embedded.credential.password= #嵌入式LDAP密碼.
spring.ldap.embedded.ldif=classpath:schema.ldif #架構(LDIF)腳本資源引用。spring.ldap.embedded.port=0#嵌入式LDAP端口.
spring.ldap.embedded.validation.enabled=true #是否啟用LDAP架構驗證.
spring.ldap.embedded.validation.schema= #自定義架構的路徑.
# Spring MVC (WebMvcProperties)
spring.mvc.async.request-timeout= #異步請求處理超時時間。.
spring.mvc.contentnegotiation.favor-parameter=false # 是否應使用請求參數(默認為"format")來確定請求的媒體類型。.
spring.mvc.contentnegotiation.favor-path-extension=false # 是否應使用url路徑中的路徑擴展名來確定請求的媒體類型。.
spring.mvc.contentnegotiation.media-types.*= # 將文件擴展名映射到媒體類型以進行內容協商。例如,yml到text/yaml。.
spring.mvc.contentnegotiation.parameter-name= # 啟用“favor-parameter”時要使用的查詢參數名稱。.
spring.mvc.date-format= # 要使用的日期格式。例如, `dd/MM/yyyy`.
spring.mvc.dispatch-trace-request=false # 是否將跟蹤請求分派到Frameworkservlet doService方法。.
spring.mvc.dispatch-options-request=true #是否將options請求分派到frameworkservlet doservice方法.
spring.mvc.favicon.enabled=true # 是否啟用favicon.ico的解析。.
spring.mvc.formcontent.filter.enabled=true # 是否啟用Spring的FormContentFilter。.
spring.mvc.hiddenmethod.filter.enabled=true # 是否啟用Spring的HiddenHttpMethodFilter。.
spring.mvc.ignore-default-model-on-redirect=true # 重定向場景期間是否應忽略“default”模型的內容.
spring.mvc.locale= # 要使用的區域設置。默認情況下,此區域設置被“Accept-Language”頭覆蓋。.
spring.mvc.locale-resolver=accept-header # 定義應如何解析區域設置.
spring.mvc.log-resolved-exception=false # 是否啟用“HandlerExceptionResolver”解決的異常的警告日志記錄,但“DefaulthandlerExceptionResolver”除外。.
spring.mvc.message-codes-resolver-format= # 消息代碼的格式化策略。例如,“前綴錯誤代碼”`.
spring.mvc.pathmatch.use-registered-suffix-pattern=false # 后綴模式匹配是否只對注冊為“spring.mvc.contentnegotiation.media types.*的擴展有效.
spring.mvc.pathmatch.use-suffix-pattern=false # 將模式與請求匹配時是否使用后綴模式匹配(“.*”)。
spring.mvc.servlet.load-on-startup=-1 # dispatcher servlet的啟動時加載優先級.
spring.mvc.servlet.path=/ #調度伺服路徑.
spring.mvc.static-path-pattern=/** #用于靜態資源的路徑模式.
spring.mvc.throw-exception-if-no-handler-found=false #如果找不到處理請求的處理程序,是否應引發“Nohandlerfoundexception.
spring.mvc.view.prefix= # Spring MVC視圖前綴.
spring.mvc.view.suffix= # Spring MVC 視圖后綴.
# Spring 資源處理 (ResourceProperties)
spring.resources.add-mappings=true #是否啟用默認資源處理.
spring.resources.cache.cachecontrol.cache-private= #指示響應消息是針對單個用戶的,不能由共享緩存存儲.
spring.resources.cache.cachecontrol.cache-public= #指示任何緩存都可以存儲響應.
spring.resources.cache.cachecontrol.max-age= #如果沒有指定時間段后綴,則應將響應緩存的最大時間以秒為單位。.
spring.resources.cache.cachecontrol.must-revalidate= #指示緩存一旦過時,在未通過服務器重新驗證之前,不能使用響應.
spring.resources.cache.cachecontrol.no-cache= #指示只有在與服務器重新驗證時才能重用緩存的響應.
spring.resources.cache.cachecontrol.no-store= #指示在任何情況下都不緩存響應.
spring.resources.cache.cachecontrol.no-transform= #指示中介(緩存和其他)它們不應轉換響應內容.
spring.resources.cache.cachecontrol.proxy-revalidate= #與“must revalidate”指令的含義相同,只是它不適用于私有緩存.
spring.resources.cache.cachecontrol.s-max-age= #如果沒有指定持續時間后綴,則應在共享緩存中緩存響應的最大時間,以秒為單位。.
spring.resources.cache.cachecontrol.stale-if-error= #當遇到錯誤時,可以使用響應的最大時間,如果沒有指定持續時間后綴,則以秒為單位。.
spring.resources.cache.cachecontrol.stale-while-revalidate= #如果沒有指定持續時間后綴,則在其變為陳舊的情況下,可以在響應時間內提供響應的最大時間。.
spring.resources.cache.period= #資源處理程序提供的資源的緩存周期。如果未指定持續時間后綴,則將使用秒.
spring.resources.chain.cache=true #是否在資源鏈中啟用緩存.
spring.resources.chain.compressed=false #是否啟用已壓縮資源的解析(gzip、brotli).
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 session (SessionProperties)
spring.session.store-type= #會話存儲類型.
spring.session.timeout= #會話超時。如果未指定持續時間后綴,則將使用秒.
spring.session.servlet.filter-order=-2147483598 #會話存儲庫篩選順序.
spring.session.servlet.filter-dispatcher-types=async,error,request #會話存儲庫篩選器分派器類型.
# Spring session HAZELCAST (HazelcastSessionProperties)
spring.session.hazelcast.flush-mode=on-save #會話刷新模式.
spring.session.hazelcast.map-name=spring:session:sessions #用于存儲會話的映射的名稱.
# Spring session JDBC (JdbcSessionProperties)
spring.session.jdbc.cleanup-cron=0 * * * * * #過期會話清理作業的cron表達式.
spring.session.jdbc.initialize-schema=embedded # Database schema初始化模式.
spring.session.jdbc.schema=classpath:org/springframework/session/jdbc/schema-@@platform@@.sql # 用于初始化Database schema的SQL文件的路徑.
spring.session.jdbc.table-name=SPRING_SESSION # 用于存儲會話的數據庫表的名稱.
# Spring session Mongodb (MongoSessionProperties)
spring.session.mongodb.collection-name=sessions # 用于存儲會話的集合名稱.
# Spring session redis (RedisSessionProperties)
spring.session.redis.cleanup-cron=0 * * * * * # 過期會話清理作業的cron表達式.
spring.session.redis.flush-mode=on-save # 會話刷新模式.
spring.session.redis.namespace=spring:session # 用于存儲會話的鍵的命名空間.
# Thymeleaf (ThymeleafAutoConfiguration)
spring.thymeleaf.cache=true # 是否啟用模板緩存.
spring.thymeleaf.check-template=true # 是否在呈現模板之前檢查模板是否存在。.
spring.thymeleaf.check-template-location=true # 是否檢查模板位置是否存在.
spring.thymeleaf.enabled=true # 是否為web框架啟用thymeleaf視圖解析.
spring.thymeleaf.enable-spring-el-compiler=false # 在springeEL表達式中啟用springeEL編譯器.
spring.thymeleaf.encoding=UTF-8 # 模板文件編碼。.
spring.thymeleaf.excluded-view-names= # 應從解析中排除的視圖名稱(允許模式)的逗號分隔列表.
spring.thymeleaf.mode=HTML # 要應用于模板的模板模式。另請參見thymeleaf的TemplateMode 枚舉.
spring.thymeleaf.prefix=classpath:/templates/ # 在生成URL時為查看名稱而預先設置的前綴.
spring.thymeleaf.reactive.chunked-mode-view-names= # 以逗號分隔的視圖名稱列表(允許模式),在設置最大塊大小時,該列表應是在分塊模式下執行的唯一視圖名稱.
spring.thymeleaf.reactive.full-mode-view-names= # 即使設置了最大塊大小,也應在完整模式下執行的以逗號分隔的視圖名稱列表(允許模式).
spring.thymeleaf.reactive.max-chunk-size=0B # 用于寫入響應的數據緩沖區的最大大小.
spring.thymeleaf.reactive.media-types= # 視圖技術支持的媒體類型.
spring.thymeleaf.render-hidden-markers-before-checkboxes=false # 作為復選框標記的隱藏表單輸入是否應在checkbox元素本身之前呈現.
spring.thymeleaf.servlet.content-type=text/html # 寫入http響應的內容類型值.
spring.thymeleaf.servlet.produce-partial-output-while-processing=true # thymeleaf應該盡快開始寫入部分輸出還是緩沖,直到模板處理完成.
spring.thymeleaf.suffix=.html # 創建URL時附加到視圖名稱的后綴.
spring.thymeleaf.template-resolver-order= #鏈中模板解析器的順序.
spring.thymeleaf.view-names= # 可以解析的視圖名稱(允許模式)的逗號分隔列表.
# Spring WebFlux (WebFluxProperties)
spring.webflux.date-format= # 要使用的日期格式。例如, `dd/MM/yyyy`.
spring.webflux.hiddenmethod.filter.enabled=true # 是否啟用Spring的HiddenHttpMethodFilter.
spring.webflux.static-path-pattern=/** # 用于靜態資源的路徑模式.
# Spring web services (WebServicesProperties)
spring.webservices.path=/services # 用作服務的基本uri的路徑.
spring.webservices.servlet.init= # 要傳遞給spring web服務的servlet init參數.
spring.webservices.servlet.load-on-startup=-1 # spring web服務servlet的啟動時加載優先級.
spring.webservices.wsdl-locations= # 以逗號分隔的wsdl和將作為bean公開的隨附xsd的位置列表.
# ----------------------------------------
# 安全屬性配置
# ----------------------------------------
# Security (SecurityProperties)
spring.security.filter.order=-100 #安全過濾器鏈順序.
spring.security.filter.dispatcher-types=async,error,request #安全篩選器鏈調度程序類型.
spring.security.user.name=user #默認用戶名.
spring.security.user.password= #默認用戶名的密碼.
spring.security.user.roles= #為默認用戶名授予角色.
# Security OAUTH2 客戶端 (OAuth2ClientProperties)
spring.security.oauth2.client.provider.*= # OAuth提供程序詳細信息.
spring.security.oauth2.client.registration.*= # OAuth客戶端注冊.
# Security OAUTH2 資源服務器 (OAuth2ResourceServerProperties)
spring.security.oauth2.resourceserver.jwt.jwk-set-uri= #用于驗證jwt令牌的json web密鑰uri.
spring.security.oauth2.resourceserver.jwt.issuer-uri= # OpenID 連接提供程序斷言為其頒發者標識符的uri。.
# ----------------------------------------
# DATA PROPERTIES
# ----------------------------------------
# ELASTICSEARCH (ElasticsearchProperties)
spring.data.elasticsearch.cluster-name=elasticsearch # Elasticsearch cluster name.
spring.data.elasticsearch.cluster-nodes= # Comma-separated list of cluster node addresses.
spring.data.elasticsearch.properties.*= # Additional properties used to configure the client.
spring.data.elasticsearch.repositories.enabled=true # Whether to enable Elasticsearch repositories.
# DATA JDBC
spring.data.jdbc.repositories.enabled=true #是否啟用JDBC存儲庫.
# DATA LDAP
spring.data.ldap.repositories.enabled=true #是否啟用LDAP存儲庫.
# MONGODB (MongoProperties)
spring.data.mongodb.authentication-database= #身份驗證數據庫名稱.
spring.data.mongodb.database= #數據庫名稱.
spring.data.mongodb.field-naming-strategy= #要使用的FieldNamingStrategy 的完全限定名.
spring.data.mongodb.grid-fs-database= # GridFS數據庫名稱.
spring.data.mongodb.host= # Mongo服務器主機。不能用uri設置.
spring.data.mongodb.password= # Mongo服務器的登錄密碼。不能用uri設置。.
spring.data.mongodb.port= # Mongo服務器端口。不能用uri設置.
spring.data.mongodb.repositories.type=auto #要啟用的Mongo存儲庫類型.
spring.data.mongodb.uri=mongodb://localhost/test # Mongo數據庫uri。無法使用主機、端口和憑據設置.
spring.data.mongodb.username= # Mongo服務器的登錄用戶。不能用uri設置。.
# DATA REDIS
spring.data.redis.repositories.enabled=true #是否啟用redis存儲庫.
# Data Rest (RepositoryRestProperties)
spring.data.rest.base-path= # spring數據rest用來公開存儲庫資源的基本路徑.
spring.data.rest.default-media-type= #未指定時用作默認值的內容類型.
spring.data.rest.default-page-size= #默認頁面大小.
spring.data.rest.detection-strategy=default #用于確定哪些存儲庫公開的策略.
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 host. Ignored if "zk-host" is set.
spring.data.solr.repositories.enabled=true # Whether to enable Solr repositories.
spring.data.solr.zk-host= # ZooKeeper host address in the form HOST:PORT.
# Data Web (SpringDataWebProperties)
spring.data.web.pageable.default-page-size=20 #默認頁面大小.
spring.data.web.pageable.max-page-size=2000 #接受的最大頁面大小.
spring.data.web.pageable.one-indexed-parameters=false #是否公開和假設基于1的頁碼索引
spring.data.web.pageable.page-parameter=page #頁索引參數名稱.
spring.data.web.pageable.prefix= #頁碼和頁大小參數前面的常規前綴.
spring.data.web.pageable.qualifier-delimiter=_ #限定符與實際頁碼和大小屬性之間使用的分隔符.
spring.data.web.pageable.size-parameter=size #頁大小參數名稱.
spring.data.web.sort.sort-parameter=sort #排序參數名稱.
# DataSources (DataSourceAutoConfiguration & DataSourceProperties)
spring.datasource.continue-on-error=false #如果初始化數據庫時出錯,是否停止.
spring.datasource.data= #數據(DML)腳本資源引用.
spring.datasource.data-username= #執行DML腳本的數據庫的用戶名(如果不同).
spring.datasource.data-password= #執行DML腳本的數據庫密碼(如果不同).
spring.datasource.dbcp2.*= # 通用DBCP2特定設置
spring.datasource.driver-class-name= # JDBC驅動程序的完整限定名。默認情況下基于url自動檢測.
spring.datasource.generate-unique-name=false #是否生成隨機數據源名稱.
spring.datasource.hikari.*= # Hikari特定設置
spring.datasource.initialization-mode=embedded #使用可用的ddl和dml腳本初始化數據源.
spring.datasource.jmx-enabled=false #是否啟用JMX支持(如果由基礎池提供).
spring.datasource.jndi-name= #數據源的JNDI位置。類、url、用戶名密碼在設置時被忽略.
spring.datasource.name= #數據源的名稱。使用嵌入式數據庫時默認為“testdb”.
spring.datasource.password= #數據庫登錄密碼.
spring.datasource.platform=all #要在ddl或dml腳本中使用的平臺(例如schema-${platform}.sql或data-${platform}.sql).
spring.datasource.schema= # Schema (DDL) (DDL)腳本資源引用.
spring.datasource.schema-username= #執行DDL腳本的數據庫的用戶名(如果不同).
spring.datasource.schema-password= #執行DDL腳本的數據庫密碼(如果不同).
spring.datasource.separator=; # sql初始化腳本中的語句分隔符.
spring.datasource.sql-script-encoding= # SQL腳本編碼.
spring.datasource.tomcat.*= # Tomcat數據源特定設置
spring.datasource.type= #要使用的連接池實現的完全限定名。默認情況下,它是從類路徑自動檢測的.
spring.datasource.url= #數據庫的JDBC URL.
spring.datasource.username= #數據庫的登錄用戶名.
spring.datasource.xa.data-source-class-name= # XA數據源完全限定名.
spring.datasource.xa.properties= #傳遞到xa數據源的屬性.
# JEST (Elasticsearch HTTP client) (JestProperties)
spring.elasticsearch.jest.connection-timeout=3s # Connection timeout.
spring.elasticsearch.jest.multi-threaded=true # Whether to enable connection requests from multiple execution threads.
spring.elasticsearch.jest.password= # Login password.
spring.elasticsearch.jest.proxy.host= # Proxy host the HTTP client should use.
spring.elasticsearch.jest.proxy.port= # Proxy port the HTTP client should use.
spring.elasticsearch.jest.read-timeout=3s # Read timeout.
spring.elasticsearch.jest.uris=http://localhost:9200 # Comma-separated list of the Elasticsearch instances to use.
spring.elasticsearch.jest.username= # Login username.
# Elasticsearch REST clients (RestClientProperties)
spring.elasticsearch.rest.password= # Credentials password.
spring.elasticsearch.rest.uris=http://localhost:9200 # Comma-separated list of the Elasticsearch instances to use.
spring.elasticsearch.rest.username= # Credentials username.
# H2 Web Console (H2ConsoleProperties)
spring.h2.console.enabled=false # Whether to enable the console.
spring.h2.console.path=/h2-console # Path at which the console is available.
spring.h2.console.settings.trace=false # Whether to enable trace output.
spring.h2.console.settings.web-allow-others=false # Whether to enable remote access.
# InfluxDB (InfluxDbProperties)
spring.influx.password= # Login password.
spring.influx.url= # URL of the InfluxDB instance to which to connect.
spring.influx.user= # Login user.
# JOOQ (JooqProperties)
spring.jooq.sql-dialect= # SQL dialect to use. Auto-detected by default.
# JDBC (JdbcProperties)
spring.jdbc.template.fetch-size=-1 #需要更多行時應從數據庫中提取的行數.
spring.jdbc.template.max-rows=-1 #最大行數.
spring.jdbc.template.query-timeout= #查詢超時。默認設置是使用JDBC驅動程序的默認配置。如果未指定持續時間后綴,則將使用秒.
# JPA (JpaBaseConfiguration, HibernateJpaAutoConfiguration)
spring.data.jpa.repositories.bootstrap-mode=default # jpa存儲庫的引導模式.
spring.data.jpa.repositories.enabled=true #是否啟用jpa存儲庫.
spring.jpa.database= #要操作的目標數據庫,默認情況下自動檢測。也可以使用“databaseplatform”屬性設置.
spring.jpa.database-platform= #要操作的目標數據庫的名稱,默認情況下自動檢測。也可以使用“database”枚舉設置.
spring.jpa.generate-ddl=false #啟動時是否初始化架構.
spring.jpa.hibernate.ddl-auto= # DDL模式。這實際上是“hibernate.hbm2ddl.auto”屬性的快捷方式。在使用嵌入式數據庫且未檢測到架構管理器時,默認為“create drop”。否則,默認為“none”.
spring.jpa.hibernate.naming.implicit-strategy= #隱式命名策略的完全限定名.
spring.jpa.hibernate.naming.physical-strategy= #物理命名策略的完全限定名.
spring.jpa.hibernate.use-new-id-generator-mappings= #是否使用hibernate更新的identifiergenerator來實現auto、table和sequence.
spring.jpa.mapping-resources= #映射資源(相當于persistence.xml中的“mapping file”條目).
spring.jpa.open-in-view=true #注冊OpenEntityManagerInViewInterceptor。在請求的整個處理過程中將JPA EntityManager綁定到線程.
spring.jpa.properties.*= #要在JPA提供程序上設置的其他本機屬性.
spring.jpa.show-sql=false #是否啟用SQL語句日志記錄.
# JTA (JtaAutoConfiguration)
spring.jta.enabled=true # Whether to enable JTA support.
spring.jta.log-dir= # Transaction logs directory.
spring.jta.transaction-manager-id= # Transaction manager unique identifier.
# REDIS (RedisProperties)
spring.redis.cluster.max-redirects= # Maximum number of redirects to follow when executing commands across the cluster.
spring.redis.cluster.nodes= # Comma-separated list of "host:port" pairs to bootstrap from.
spring.redis.database=0 # Database index used by the connection factory.
spring.redis.url= # Connection URL. Overrides host, port, and password. User is ignored. Example: redis://user:password@example.com:6379
spring.redis.host=localhost # Redis server host.
spring.redis.jedis.pool.max-active=8 # Maximum number of connections that can be allocated by the pool at a given time. Use a negative value for no limit.
spring.redis.jedis.pool.max-idle=8 # Maximum number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.
spring.redis.jedis.pool.max-wait=-1ms # Maximum amount of time a connection allocation should block before throwing an exception when the pool is exhausted. Use a negative value to block indefinitely.
spring.redis.jedis.pool.min-idle=0 # Target for the minimum number of idle connections to maintain in the pool. This setting only has an effect if it is positive.
spring.redis.lettuce.pool.max-active=8 # Maximum number of connections that can be allocated by the pool at a given time. Use a negative value for no limit.
spring.redis.lettuce.pool.max-idle=8 # Maximum number of "idle" connections in the pool. Use a negative value to indicate an unlimited number of idle connections.
spring.redis.lettuce.pool.max-wait=-1ms # Maximum amount of time a connection allocation should block before throwing an exception when the pool is exhausted. Use a negative value to block indefinitely.
spring.redis.lettuce.pool.min-idle=0 # Target for the minimum number of idle connections to maintain in the pool. This setting only has an effect if it is positive.
spring.redis.lettuce.shutdown-timeout=100ms # Shutdown timeout.
spring.redis.password= # Login password of the redis server.
spring.redis.port=6379 # Redis server port.
spring.redis.sentinel.master= # Name of the Redis server.
spring.redis.sentinel.nodes= # Comma-separated list of "host:port" pairs.
spring.redis.ssl=false # Whether to enable SSL support.
spring.redis.timeout= # Connection timeout.
# 事務 (TransactionProperties)
spring.transaction.default-timeout= #默認事務超時。如果未指定持續時間后綴,則將使用秒.
spring.transaction.rollback-on-commit-failure= #是否在提交失敗時回滾.
# ----------------------------------------
# INTEGRATION PROPERTIES
# ----------------------------------------
# ACTIVEMQ (ActiveMQProperties)
spring.activemq.broker-url= # URL of the ActiveMQ broker. Auto-generated by default.
spring.activemq.close-timeout=15s # Time to wait before considering a close complete.
spring.activemq.in-memory=true # Whether the default broker URL should be in memory. Ignored if an explicit broker has been specified.
spring.activemq.non-blocking-redelivery=false # Whether to stop message delivery before re-delivering messages from a rolled back transaction. This implies that message order is not preserved when this is enabled.
spring.activemq.password= # Login password of the broker.
spring.activemq.send-timeout=0ms # Time to wait on message sends for a response. Set it to 0 to wait forever.
spring.activemq.user= # Login user of the broker.
spring.activemq.packages.trust-all= # Whether to trust all packages.
spring.activemq.packages.trusted= # Comma-separated list of specific packages to trust (when not trusting all packages).
spring.activemq.pool.block-if-full=true # Whether to block when a connection is requested and the pool is full. Set it to false to throw a "JMSException" instead.
spring.activemq.pool.block-if-full-timeout=-1ms # Blocking period before throwing an exception if the pool is still full.
spring.activemq.pool.enabled=false # Whether a JmsPoolConnectionFactory should be created, instead of a regular ConnectionFactory.
spring.activemq.pool.idle-timeout=30s # Connection idle timeout.
spring.activemq.pool.max-connections=1 # Maximum number of pooled connections.
spring.activemq.pool.max-sessions-per-connection=500 # Maximum number of pooled sessions per connection in the pool.
spring.activemq.pool.time-between-expiration-check=-1ms # Time to sleep between runs of the idle connection eviction thread. When negative, no idle connection eviction thread runs.
spring.activemq.pool.use-anonymous-producers=true # Whether to use only one anonymous "MessageProducer" instance. Set it to false to create one "MessageProducer" every time one is required.
# JMS (JmsProperties)
spring.jms.cache.consumers=false # Whether to cache message consumers.
spring.jms.cache.enabled=true # Whether to cache sessions.
spring.jms.cache.producers=true # Whether to cache message producers.
spring.jms.cache.session-cache-size=1 # Size of the session cache (per JMS Session type).
spring.jms.jndi-name= # Connection factory JNDI name. When set, takes precedence to others connection factory auto-configurations.
spring.jms.listener.acknowledge-mode= # Acknowledge mode of the container. By default, the listener is transacted with automatic acknowledgment.
spring.jms.listener.auto-startup=true # Start the container automatically on startup.
spring.jms.listener.concurrency= # Minimum number of concurrent consumers.
spring.jms.listener.max-concurrency= # Maximum number of concurrent consumers.
spring.jms.pub-sub-domain=false # Whether the default destination type is topic.
spring.jms.template.default-destination= # Default destination to use on send and receive operations that do not have a destination parameter.
spring.jms.template.delivery-delay= # Delivery delay to use for send calls.
spring.jms.template.delivery-mode= # Delivery mode. Enables QoS (Quality of Service) when set.
spring.jms.template.priority= # Priority of a message when sending. Enables QoS (Quality of Service) when set.
spring.jms.template.qos-enabled= # Whether to enable explicit QoS (Quality of Service) when sending a message.
spring.jms.template.receive-timeout= # Timeout to use for receive calls.
spring.jms.template.time-to-live= # Time-to-live of a message when sending. Enables QoS (Quality of Service) when set.
# RABBIT (RabbitProperties)
spring.rabbitmq.addresses= # Comma-separated list of addresses to which the client should connect.
spring.rabbitmq.cache.channel.checkout-timeout= # Duration to wait to obtain a channel if the cache size has been reached.
spring.rabbitmq.cache.channel.size= # Number of channels to retain in the cache.
spring.rabbitmq.cache.connection.mode=channel # Connection factory cache mode.
spring.rabbitmq.cache.connection.size= # Number of connections to cache.
spring.rabbitmq.connection-timeout= # Connection timeout. Set it to zero to wait forever.
spring.rabbitmq.dynamic=true # Whether to create an AmqpAdmin bean.
spring.rabbitmq.host=localhost # RabbitMQ host.
spring.rabbitmq.listener.direct.acknowledge-mode= # Acknowledge mode of container.
spring.rabbitmq.listener.direct.auto-startup=true # Whether to start the container automatically on startup.
spring.rabbitmq.listener.direct.consumers-per-queue= # Number of consumers per queue.
spring.rabbitmq.listener.direct.default-requeue-rejected= # Whether rejected deliveries are re-queued by default.
spring.rabbitmq.listener.direct.idle-event-interval= # How often idle container events should be published.
spring.rabbitmq.listener.direct.missing-queues-fatal=false # Whether to fail if the queues declared by the container are not available on the broker.
spring.rabbitmq.listener.direct.prefetch= # Maximum number of unacknowledged messages that can be outstanding at each consumer.
spring.rabbitmq.listener.direct.retry.enabled=false # Whether publishing retries are enabled.
spring.rabbitmq.listener.direct.retry.initial-interval=1000ms # Duration between the first and second attempt to deliver a message.
spring.rabbitmq.listener.direct.retry.max-attempts=3 # Maximum number of attempts to deliver a message.
spring.rabbitmq.listener.direct.retry.max-interval=10000ms # Maximum duration between attempts.
spring.rabbitmq.listener.direct.retry.multiplier=1 # Multiplier to apply to the previous retry interval.
spring.rabbitmq.listener.direct.retry.stateless=true # Whether retries are stateless or stateful.
spring.rabbitmq.listener.simple.acknowledge-mode= # Acknowledge mode of container.
spring.rabbitmq.listener.simple.auto-startup=true # Whether to start the container automatically on startup.
spring.rabbitmq.listener.simple.concurrency= # Minimum number of listener invoker threads.
spring.rabbitmq.listener.simple.default-requeue-rejected= # Whether rejected deliveries are re-queued by default.
spring.rabbitmq.listener.simple.idle-event-interval= # How often idle container events should be published.
spring.rabbitmq.listener.simple.max-concurrency= # Maximum number of listener invoker threads.
spring.rabbitmq.listener.simple.missing-queues-fatal=true # Whether to fail if the queues declared by the container are not available on the broker and/or whether to stop the container if one or more queues are deleted at runtime.
spring.rabbitmq.listener.simple.prefetch= # Maximum number of unacknowledged messages that can be outstanding at each consumer.
spring.rabbitmq.listener.simple.retry.enabled=false # Whether publishing retries are enabled.
spring.rabbitmq.listener.simple.retry.initial-interval=1000ms # Duration between the first and second attempt to deliver a message.
spring.rabbitmq.listener.simple.retry.max-attempts=3 # Maximum number of attempts to deliver a message.
spring.rabbitmq.listener.simple.retry.max-interval=10000ms # Maximum duration between attempts.
spring.rabbitmq.listener.simple.retry.multiplier=1 # Multiplier to apply to the previous retry interval.
spring.rabbitmq.listener.simple.retry.stateless=true # Whether retries are stateless or stateful.
spring.rabbitmq.listener.simple.transaction-size= # Number of messages to be processed between acks when the acknowledge mode is AUTO. If larger than prefetch, prefetch will be increased to this value.
spring.rabbitmq.listener.type=simple # Listener container type.
spring.rabbitmq.password=guest # Login to authenticate against the broker.
spring.rabbitmq.port=5672 # RabbitMQ port.
spring.rabbitmq.publisher-confirms=false # Whether to enable publisher confirms.
spring.rabbitmq.publisher-returns=false # Whether to enable publisher returns.
spring.rabbitmq.requested-heartbeat= # Requested heartbeat timeout; zero for none. If a duration suffix is not specified, seconds will be used.
spring.rabbitmq.ssl.algorithm= # SSL algorithm to use. By default, configured by the Rabbit client library.
spring.rabbitmq.ssl.enabled=false # Whether to enable SSL support.
spring.rabbitmq.ssl.key-store= # Path to the key store that holds the SSL certificate.
spring.rabbitmq.ssl.key-store-password= # Password used to access the key store.
spring.rabbitmq.ssl.key-store-type=PKCS12 # Key store type.
spring.rabbitmq.ssl.trust-store= # Trust store that holds SSL certificates.
spring.rabbitmq.ssl.trust-store-password= # Password used to access the trust store.
spring.rabbitmq.ssl.trust-store-type=JKS # Trust store type.
spring.rabbitmq.ssl.validate-server-certificate=true # Whether to enable server side certificate validation.
spring.rabbitmq.ssl.verify-hostname=true # Whether to enable hostname verification.
spring.rabbitmq.template.default-receive-queue= # Name of the default queue to receive messages from when none is specified explicitly.
spring.rabbitmq.template.exchange= # Name of the default exchange to use for send operations.
spring.rabbitmq.template.mandatory= # Whether to enable mandatory messages.
spring.rabbitmq.template.receive-timeout= # Timeout for `receive()` operations.
spring.rabbitmq.template.reply-timeout= # Timeout for `sendAndReceive()` operations.
spring.rabbitmq.template.retry.enabled=false # Whether publishing retries are enabled.
spring.rabbitmq.template.retry.initial-interval=1000ms # Duration between the first and second attempt to deliver a message.
spring.rabbitmq.template.retry.max-attempts=3 # Maximum number of attempts to deliver a message.
spring.rabbitmq.template.retry.max-interval=10000ms # Maximum duration between attempts.
spring.rabbitmq.template.retry.multiplier=1 # Multiplier to apply to the previous retry interval.
spring.rabbitmq.template.routing-key= # Value of a default routing key to use for send operations.
spring.rabbitmq.username=guest # Login user to authenticate to the broker.
spring.rabbitmq.virtual-host= # Virtual host to use when connecting to the broker.
# ----------------------------------------
# DEVTOOLS PROPERTIES
# ----------------------------------------
# DEVTOOLS (DevToolsProperties)
spring.devtools.add-properties=true # Whether to enable development property defaults.
spring.devtools.livereload.enabled=true # Whether to enable a livereload.com-compatible server.
spring.devtools.livereload.port=35729 # Server port.
spring.devtools.restart.additional-exclude= # Additional patterns that should be excluded from triggering a full restart.
spring.devtools.restart.additional-paths= # Additional paths to watch for changes.
spring.devtools.restart.enabled=true # Whether to enable automatic restart.
spring.devtools.restart.exclude=META-INF/maven/**,META-INF/resources/**,resources/**,static/**,public/**,templates/**,**/*Test.class,**/*Tests.class,git.properties,META-INF/build-info.properties # Patterns that should be excluded from triggering a full restart.
spring.devtools.restart.log-condition-evaluation-delta=true # Whether to log the condition evaluation delta upon restart.
spring.devtools.restart.poll-interval=1s # Amount of time to wait between polling for classpath changes.
spring.devtools.restart.quiet-period=400ms # Amount of quiet time required without any classpath changes before a restart is triggered.
spring.devtools.restart.trigger-file= # Name of a specific file that, when changed, triggers the restart check. If not specified, any classpath file change triggers the restart.
# REMOTE DEVTOOLS (RemoteDevToolsProperties)
spring.devtools.remote.context-path=/.~~spring-boot!~ # Context path used to handle the remote connection.
spring.devtools.remote.proxy.host= # The host of the proxy to use to connect to the remote application.
spring.devtools.remote.proxy.port= # The port of the proxy to use to connect to the remote application.
spring.devtools.remote.restart.enabled=true # Whether to enable remote restart.
spring.devtools.remote.secret= # A shared secret required to establish a connection (required to enable remote support).
spring.devtools.remote.secret-header-name=X-AUTH-TOKEN # HTTP header used to transfer the shared secret.
# ----------------------------------------
# TESTING PROPERTIES
# ----------------------------------------
spring.test.database.replace=any # Type of existing DataSource to replace.
spring.test.mockmvc.print=default # MVC Print option.