spring boot 配置文件
生活随笔
收集整理的這篇文章主要介紹了
spring boot 配置文件
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
開發的時候查找方便,不用每次去翻spring boot官網,用起來方便。
#================================================= ================== #共同spring boot特性 # #此示例文件作為指導提供。不要在其中復制它 #完整到您自己的應用程序。^^^ #================================================= ================== #---------------------------------------- #核心屬性 #---------------------------------------- #BANNER banner.charset = UTF-8#橫幅文件編碼。 banner.location = classpath:banner.txt#橫幅文件位置。 #記錄 logging.config =#日志配置文件的位置。例如Logback的`classpath:logback.xml` logging.exception-conversion-word =%wEx#記錄異常時使用的轉換字。 logging.file =#記錄文件名稱。例如`myapp.log` logging.level。* =#日志級別嚴重性映射。例如`logging.level.org.springframework = DEBUG` logging.path =#日志文件的位置。例如`/ var / log` logging.pattern.console =#輸出到控制臺的Appender模式。僅支持默認的登錄設置。 logging.pattern.file =#輸出到文件的Appender模式。僅支持默認的登錄設置。 logging.pattern.level =#日志級別的Appender模式(默認%5p)。僅支持默認的登錄設置。 logging.register-shutdown-hook = false#為日志記錄系統初始化時注冊一個關閉鉤子。 #AOP spring.aop.auto = true#添加@EnableAspectJAutoProxy。 spring.aop.proxy-target-class = false#與基于Java接口的標準代理(false)相比,是否創建基于子類的(CGLIB)代理(true)。 #IDENTITY(ContextIdApplicationContextInitializer) spring.application.index =#應用程序索引。 spring.application.name =#應用程序名稱。 #ADMIN(SpringApplicationAdminJmxAutoConfiguration) spring.application.admin.enabled = false#為應用程序啟用管理功能。 spring.application.admin.jmx-name = org.springframework.boot:type = Admin,name = SpringApplication#JMX應用程序的名稱admin MBean。 #自動配置 spring.autoconfigure.exclude =#要排除的自動配置類。 #彈簧芯 spring.beaninfo.ignore = true#跳過對BeanInfo類的搜索。 #SPRING CACHE(CacheProperties) spring.cache.cache-names =#如果基礎高速緩存管理器支持,將創建緩存名稱的逗號分隔列表。 spring.cache.ehcache.config =#用于初始化EhCache的配置文件的位置。 spring.cache.guava.spec =#用于創建緩存的規范。檢查CacheBuilderSpec以獲取有關spec格式的更多詳細信息。 spring.cache.hazelcast.config =#用于初始化Hazelcast的配置文件的位置。 spring.cache.infinispan.config =#用于初始化Infinispan的配置文件的位置。 spring.cache.jcache.config =#用于初始化緩存管理器的配置文件的位置。 spring.cache.jcache.provider =#用于檢索符合JSR-107的緩存管理器的CachingProvider實現的完全限定名稱。只有在類路徑中有多個JSR-107實現可用時才需要。 spring.cache.type =#緩存類型,默認根據環境自動檢測。 #SPRING CONFIG - 僅使用環境屬性(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名稱。 #電子郵件(MailProperties) spring.mail.default-encoding = UTF-8#默認MimeMessage編碼。 spring.mail.host =#SMTP服務器主機。例如`smtp.example.com` spring.mail.jndi-name =#會話JNDI名稱。設置時,優先于其他郵件設置。 spring.mail.password =#登錄SMTP服務器的密碼。 spring.mail.port =#SMTP服務器端口。 spring.mail.properties。* =#其他JavaMail會話屬性。 spring.mail.protocol = smtp#SMTP服務器使用的協議。 spring.mail.test-connection = false#測試郵件服務器在啟動時是否可用。 spring.mail.username =#登錄SMTP服務器的用戶。 #應用程序設置(SpringApplication) spring.main.banner-mode = console#用于在應用程序運行時顯示橫幅的模式。 spring.main.sources =#要包含在ApplicationContext中的源(類名,包名或XML資源位置)。 spring.main.web-environment =#在Web環境中運行應用程序(默認為自動檢測)。 #FILE ENCODING(FileEncodingApplicationListener) spring.mandatory-file-encoding =#應用程序必須使用的預期字符編碼。 #國際化(MessageSourceAutoConfiguration) spring.messages.basename = messages#逗號分隔的基本名稱列表,每個都遵循ResourceBundle約定。 spring.messages.cache-seconds = -1#加載資源包文件緩存過期,以秒為單位。設置為-1時,捆綁包將永久緩存。 spring.messages.encoding = UTF-8#消息包編碼。 spring.messages.fallback-to-system-locale = true#如果未找到特定語言環境的文件,則設置是否回退到系統區域設置。 #輸出 spring.output.ansi.enabled = detect#配置ANSI輸出(可以是“detect”,“always”,“never”)。 #PID文件(ApplicationPidFileWriter) spring.pid.fail-on-write-error =#如果使用ApplicationPidFileWriter,則失敗,但不能寫入PID文件。 spring.pid.file =#要寫入的PID文件的位置(如果使用ApplicationPidFileWriter)。 #個人資料 spring.profiles.active =#逗號分隔的活動配置文件列表。 spring.profiles.include =#無條件激活指定的逗號分隔的配置文件。 #SENDGRID(SendGridAutoConfiguration) spring.sendgrid.username =#SendGrid帳戶用戶名 spring.sendgrid.password =#SendGrid帳號密碼 spring.sendgrid.proxy.host =#SendGrid代理主機 spring.sendgrid.proxy.port =#SendGrid代理端口 #---------------------------------------- #網絡屬性 #---------------------------------------- #MULTIPART(多部分屬性) multipart.enabled = true#啟用對多部分上傳的支持。 multipart.file-size-threshold = 0#文件將寫入磁盤之后的閾值。值可以使用后綴“MB”或“KB”來表示兆字節或千字節大小。 multipart.location =#上傳文件的中間位置。 multipart.max-file-size = 1Mb#最大文件大小。值可以使用后綴“MB”或“KB”來表示兆字節或千字節大小。 multipart.max-request-size = 10Mb#最大請求大小。值可以使用后綴“MB”或“KB”來表示兆字節或千字節大小。 #嵌入式服務器配置(ServerProperties) server.address =#服務器應綁定到的網絡地址。 server.compression.enabled = false#如果啟用了響應壓縮。 server.compression.excluded-user-agents =#要從壓縮中排除的用戶代理列表。 server.compression.mime-types =#應該壓縮的MIME類型的逗號分隔列表。例如`text / html,text / css,application / json` server.compression.min-response-size =#要執行壓縮所需的最小響應大小。例如2048 server.context-parameters。* =#Servlet上下文初始化參數。例如`server.context-parameters.a = alpha` server.context-path =#應用程序的上下文路徑。 server.display-name = application#顯示應用程序的名稱。 server.error.include-stacktrace = never#何時包含“stacktrace”屬性。 server.error.path = / error#錯誤控制器的路徑。 server.error.whitelabel.enabled = true#在服務器錯誤的情況下,啟用瀏覽器中顯示的默認錯誤頁面。 server.jsp-servlet.class-name = org.apache.jasper.servlet.JspServlet#JSP servlet的類名稱。 server.jsp-servlet.init-parameters。* =#用于配置JSP servlet的初始參數 server.jsp-servlet.registered = true#JSP servlet是否已注冊 server.port = 8080#服務器HTTP端口。 server.server-header =#服務器響應頭中發送的值(如果為空,則使用servlet容器默認值) server.servlet-path = /#主調度程序servlet的路徑。 server.session.cookie.comment =#會話cookie的注釋。 server.session.cookie.domain =#會話cookie的域名。 server.session.cookie.http-only =#會話cookie的“HttpOnly”標志。 server.session.cookie.max-age =#以秒為單位的會話cookie的最大時間。 server.session.cookie.name =#會話cookie名稱。 server.session.cookie.path =#會話cookie的路徑。 server.session.cookie.secure =#會話cookie的“安全”標志。 server.session.persistent = false#在重新啟動之間保留會話數據。 server.session.store-dir =#用于存儲會話數據的目錄。 server.session.timeout =#以秒為單位的會話超時。 server.session.tracking-modes =#會話跟蹤模式(以下一項或多項:“cookie”,“url”,“ssl”)。 server.ssl.ciphers =#支持的SSL密碼。 server.ssl.client-auth =#是否需要客戶端身份驗證(“需要”)或需要(“需要”)。需要信任商店。 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#創建日志文件的目錄。可以相對于tomcat的基本目錄或絕對。 server.tomcat.accesslog.enabled = false#啟用訪問日志。 server.tomcat.accesslog.pattern = common#訪問日志的格式模式。 server.tomcat.accesslog.prefix = access_log#記錄文件名前綴。 server.tomcat.accesslog.suffix = .log#日志文件名后綴。 server.tomcat.background-processor-delay = 30#調用backgroundProcess方法之間的延遲(秒)。 server.tomcat.basedir =#Tomcat基本目錄。如果未指定,則將使用臨時目錄。 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}#匹配可信IP地址的正則表達式。 server.tomcat.max-http-header-size = 0#HTTP消息頭的最大字節數。 server.tomcat.max-threads = 0#工作線程的最大數量。 server.tomcat.port-header = X-Forwarded-Port#用于覆蓋原始端口值的HTTP標頭的名稱。 server.tomcat.protocol-header =#保存傳入協議的頭部,通常名為“X-Forwarded-Proto”。 server.tomcat.protocol-header-https-value = https#指示傳入請求使用SSL的協議頭的值。 server.tomcat.remote-ip-header =#從中提取遠程IP的http頭的名稱。例如`X-FORWARDED-FOR` server.tomcat.uri-encoding = UTF-8#用于解碼URI的字符編碼。 server.undertow.accesslog.dir =#取消訪問日志目錄。 server.undertow.accesslog.enabled = false#啟用訪問日志。 server.undertow.accesslog.pattern = common#訪問日志的格式模式。 server.undertow.buffer-size =#每個緩沖區的大小(以字節為單位)。 server.undertow.buffers-per-region =#每個區域的緩沖區數量。 server.undertow.direct-buffers =#在Java堆外分配緩沖區。 server.undertow.io-threads =#為worker創建的I / O線程數量。 server.undertow.worker-threads =#工作線程數。 server.use-forward-headers =#如果X-Forwarded- *標頭應該應用于HttpRequest。 #FREEMARKER(FreeMarkerAutoConfiguration) 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#Content-Type值。 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#設置是否公開名為“springMacroRequestContext”的供Spring的宏庫使用的RequestContext。 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 =#在構建URL時被附加到查看名稱的后綴。 spring.freemarker.template-loader-path = classpath:/ templates /#逗號分隔的模板路徑列表。 spring.freemarker.view-names =#可以解析的視圖名稱的白名單。 #GROOVY模板(GroovyTemplateAutoConfiguration) spring.groovy.template.allow-request-override = false#設置是否允許HttpServletRequest屬性覆蓋(隱藏)具有相同名稱的控制器生成的模型屬性。 spring.groovy.template.allow-session-override = false#設置是否允許HttpSession屬性覆蓋(隱藏)具有相同名稱的控制器生成的模型屬性。 spring.groovy.template.cache =#啟用模板緩存。 spring.groovy.template.charset = UTF-8#模板編碼。 spring.groovy.template.check-template-location = true#檢查模板位置是否存在。 spring.groovy.template.configuration。* =#請參閱GroovyMarkupConfigurer spring.groovy.template.content-type = test / html#Content-Type值。 spring.groovy.template.enabled = true#為此技術啟用MVC視圖分辨率。 spring.groovy.template.expose-request-attributes = false#設置在與模板合并之前是否應將所有請求屬性添加到模型中。 spring.groovy.template.expose-session-attributes = false#設置在與模板合并之前是否應將所有HttpSession屬性添加到模型中。 spring.groovy.template.expose-spring-macro-helpers = true#設置是否公開一個供Spring的宏庫使用的名為“springMacroRequestContext”的RequestContext。 spring.groovy.template.prefix =#構建URL時預先查看名稱的前綴。 spring.groovy.template.request-context-attribute =#所有視圖的RequestContext屬性的名稱。 spring.groovy.template.resource-loader-path = classpath:/ templates /#模板路徑。 spring.groovy.template.suffix = .tpl#在構建URL時被附加到視圖名稱后綴。 spring.groovy.template.view-names =#可以解析的視圖名稱的白名單。 #春天HATEOAS(Hateoas屬性) spring.hateoas.use-hal-as-default-json-media-type = true#指定應用程序/ hal + json響應是否應發送到接受application / json的請求。 #HTTP消息轉換 spring.http.converters.preferred-json-mapper = jackson#用于HTTP消息轉換的首選JSON映射器。設置為“gson”來強制使用Gson,當它和Jackson都在類路徑中時。 #HTTP編碼(HttpEncodingProperties) spring.http.encoding.charset = UTF-8#HTTP請求和響應的字符集。如果未明確設置,則添加到“Content-Type”標題中。 spring.http.encoding.enabled = true#啟用http編碼支持。 spring.http.encoding.force = true#強制編碼到HTTP請求和響應上配置的字符集。 #杰克遜(JacksonProperties) spring.jackson.date-format =#日期格式字符串或完全合格的日期格式類名稱。例如`yyyy-MM-dd HH:mm:ss`。 spring.jackson.deserialization。* =#杰克遜開/關功能,影響Java對象反序列化的方式。 spring.jackson.generator。* =#生成器的Jackson開/關功能。 spring.jackson.joda-date-time-format =#喬達日期時間格式字符串。如果未配置,如果使用格式字符串配置,則將使用“日期格式”作為后備。 spring.jackson.locale =#用于格式化的區域設置。 spring.jackson.mapper。* =#杰克遜通用開/關功能。 spring.jackson.parser。* =#解析器的Jackson開/關功能。 spring.jackson.property-naming-strategy =#Jackson的PropertyNamingStrategy上的常量之一。也可以是PropertyNamingStrategy子類的完全限定類名。 spring.jackson.serialization。* =#杰克遜開/關功能,影響Java對象序列化的方式。 spring.jackson.serialization-inclusion =#在序列化過程中控制屬性的包含。使用Jackson的JsonInclude.Include枚舉中的一個值進行配置。 spring.jackson.time-zone =#格式化日期時使用的時區。例如`America / Los_Angeles` #澤西(JerseyProperties) spring.jersey.application-path =#作為應用程序的基本URI的路徑。如果指定,則覆蓋“@ApplicationPath”的值。 spring.jersey.filter.order = 0#Jersey過濾器鏈順序。 spring.jersey.init。* =#初始化參數通過servlet或過濾器傳遞給Jersey。 spring.jersey.type = servlet#Jersey集成類型。可以是“servlet”或“filter”。 #SPRING MOBILE DEVICE VIEWS(DeviceDelegatingViewResolverAutoConfiguration) spring.mobile.devicedelegatingviewresolver.enable-fallback = false#啟用對回退解析的支持。 spring.mobile.devicedelegatingviewresolver.enabled = false#啟用設備視圖解析器。 spring.mobile.devicedelegatingviewresolver.mobile-prefix = mobile /#預設為查看移動設備名稱的前綴。 spring.mobile.devicedelegatingviewresolver.mobile-suffix =#附加到移動設備視圖名稱的后綴。 spring.mobile.devicedelegatingviewresolver.normal-prefix =#用于查看普通設備名稱的前綴。 spring.mobile.devicedelegatingviewresolver.normal-suffix =#附加到正常設備的視圖名稱后綴。 spring.mobile.devicedelegatingviewresolver.tablet-prefix = tablet /#預設為查看平板設備名稱的前綴。 spring.mobile.devicedelegatingviewresolver.tablet-suffix =#附加到平板設備的查看名稱的后綴。 #SPRING MOBILE SITE PREFERENCE(SitePreferenceAutoConfiguration) spring.mobile.sitepreference.enabled = true#啟用SitePreferenceHandler。 #MUSTACHE模板(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#啟用此技術的MVC視圖分辨率。 spring.mustache.prefix = classpath:/ templates /#應用于模板名稱的前綴。 spring.mustache.suffix = .html#應用于模板名稱的后綴。 spring.mustache.view-names =#可以解析的視圖名稱的白名單。 #SPRING MVC(WebMvcProperties) spring.mvc.async.request-timeout =#異步請求處理超時之前的時間(以毫秒為單位)。 spring.mvc.date-format =#要使用的日期格式。例如`dd / MM / yyyy`。 spring.mvc.dispatch-trace-request = false#將TRACE請求分派給FrameworkServlet doService方法。 spring.mvc.dispatch-options-request = false#將OPTIONS請求分派給FrameworkServlet的doService方法。 spring.mvc.favicon.enabled = true#啟用favicon.ico的解析。 spring.mvc.formcontent.putfilter.enabled = true#啟用Spring的HttpPutFormContentFilter。 spring.mvc.ignore-default-model-on-redirect = true#如果在重定向場景中應忽略“默認”模型的內容。 spring.mvc.locale =#使用的語言環境。 spring.mvc.media-types。* =#將文件擴展名映射到媒體類型以進行內容協商。 spring.mvc.message-codes-resolver-format =#消息代碼的格式化策略。例如`PREFIX_ERROR_CODE`。 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視圖后綴。 #春季資源處理(ResourceProperties) spring.resources.add-mappings = true#啟用默認資源處理。 spring.resources.cache-period =#資源處理程序服務的資源的緩存期,以秒為單位。 spring.resources.chain.cache = true#在資源鏈中啟用緩存。 spring.resources.chain.enabled =#啟用Spring資源處理鏈。默認情況下禁用,除非至少有一種策略已啟用。 spring.resources.chain.html-application-cache = false#啟用HTML5應用程序緩存清單重寫。 spring.resources.chain.strategy.content.enabled = false#啟用內容版本策略。 spring.resources.chain.strategy.content.paths = / **#應用于版本策略的逗號分隔的模式列表。 spring.resources.chain.strategy.fixed.enabled = false#啟用固定版本策略。 spring.resources.chain.strategy.fixed.paths =#應用于版本策略的逗號分隔模式列表。 spring.resources.chain.strategy.fixed.version =#用于版本策略的版本字符串。 spring.resources.static-locations = classpath:/ META-INF / resources /,classpath:/ resources /,classpath:/ static /,classpath:/ public /#靜態資源的位置。 #SPRING SOCIAL(SocialWebAutoConfiguration) spring.social.auto-connection-views = false#為支持的提供商啟用連接狀態視圖。 #SPRING SOCIAL FACEBOOK(FacebookAutoConfiguration) spring.social.facebook.app-id =#您的應用程序的Facebook應用程序ID spring.social.facebook.app-secret =#你的應用程序的Facebook App Secret #SPRING SOCIAL LINKEDIN(LinkedInAutoConfiguration) spring.social.linkedin.app-id =#您的應用程序的LinkedIn應用程序ID spring.social.linkedin.app-secret =#你的應用的LinkedIn App Secret #SPRING SOCIAL TWITTER(TwitterAutoConfiguration) spring.social.twitter.app-id =#你的應用程序的Twitter應用程序ID spring.social.twitter.app-secret =#你的應用程序的Twitter App Secret #THYMELEAF(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 =#應該從分辨率中排除的逗號分隔的視圖名稱列表。 spring.thymeleaf.mode = HTML5#應用于模板的模板模式。另請參閱StandardTemplateModeHandlers。 spring.thymeleaf.prefix = classpath:/ templates /#構建URL時預先查看名稱的前綴。 spring.thymeleaf.suffix = .html#在構建URL時附加到視圖名稱的后綴。 spring.thymeleaf.template-resolver-order =#鏈中模板解析器的順序。 spring.thymeleaf.view-names =#可以解析的視圖名稱的逗號分隔列表。 #速度模板(VelocityAutoConfiguration) spring.velocity.allow-request-override = false#設置是否允許HttpServletRequest屬性覆蓋(隱藏)具有相同名稱的控制器生成的模型屬性。 spring.velocity.allow-session-override = false#設置是否允許HttpSession屬性覆蓋(隱藏)具有相同名稱的控制器生成的模型屬性。 spring.velocity.cache =#啟用模板緩存。 spring.velocity.charset = UTF-8#模板編碼。 spring.velocity.check-template-location = true#檢查模板位置是否存在。 spring.velocity.content-type = text / html#Content-Type值。 spring.velocity.date-tool-attribute =#要在視圖的Velocity上下文中公開的DateTool輔助對象的名稱。 spring.velocity.enabled = true#為此技術啟用MVC視圖分辨率。 spring.velocity.expose-request-attributes = false#設置在與模板合并之前是否應將所有請求屬性添加到模型中。 spring.velocity.expose-session-attributes = false#設置在與模板合并之前是否應將所有HttpSession屬性添加到模型中。 spring.velocity.expose-spring-macro-helpers = true#設置是否公開名為“springMacroRequestContext”的供Spring的宏庫使用的RequestContext。 spring.velocity.number-tool-attribute =#要在視圖的Velocity上下文中公開的NumberTool幫助程序對象的名稱。 spring.velocity.prefer-file-system-access = true#首選文件系統訪問模板加載。文件系統訪問使模板更改的熱檢測成為可能。 spring.velocity.prefix =#構建URL時預先查看名稱的前綴。 spring.velocity.properties.* =#附加速度屬性。 spring.velocity.request-context-attribute =#所有視圖的RequestContext屬性的名稱。 spring.velocity.resource-loader-path = classpath:/ templates /#模板路徑。 spring.velocity.suffix = .vm#構建URL時附加到視圖名稱的后綴。 spring.velocity.toolbox-config-location =#Velocity Toolbox配置位置。例如`/ WEB-INF / toolbox.xml` spring.velocity.view-names =#可以解析的視圖名稱的白名單。 #---------------------------------------- #安全特性 #---------------------------------------- #安全(SecurityProperties) security.basic.authorize-mode = role#安全授權模式。 security.basic.enabled = true#啟用基本認證。 security.basic.path = / **#以逗號分隔的安全路徑列表。 security.basic.realm = Spring#HTTP基本領域名稱。 security.enable-csrf = false#啟用跨站點請求偽造支持。 security.filter-order = 0#安全過濾器鏈順序。 security.filter-dispatcher-types = ASYNC,FORWARD,INCLUDE,REQUEST#安全性篩選器鏈調度程序類型。 security.headers.cache = true#啟用緩存控制HTTP標頭。 security.headers.content-type = true#啟用“X-Content-Type-Options”標題。 security.headers.frame = true#啟用“X-Frame-Options”標題。 security.headers.hsts =#HTTP嚴格傳輸安全(HSTS)模式(無,域,全部)。 security.headers.xss = true#啟用跨站點腳本(XSS)保護。 security.ignored =#從逗號分隔的默認安全路徑中排除的路徑列表。 security.require-ssl = false#為所有請求啟用安全通道。 security.sessions =無狀態#會話創建策略(永遠,從不,if_required,無狀態)。 security.user.name = user#默認用戶名。 security.user.password =#默認用戶名的密碼。默認情況下會在啟動時記錄隨機密碼。 security.user.role = USER#授予默認用戶名的角色。 #SECURITY OAUTH2客戶端(OAuth2ClientProperties security.oauth2.client.client-id =#OAuth2客戶端ID。 security.oauth2.client.client-secret =#OAuth2客戶端密鑰。隨機秘密是默認生成的 #SECURITY OAUTH2 RESOURCES(ResourceServerProperties security.oauth2.resource.id =#資源的標識符。 security.oauth2.resource.jwt.key-uri =#JWT令牌的URI。如果該值不可用并且密鑰是公開的,可以設置。 security.oauth2.resource.jwt.key-value =#JWT令牌的驗證密鑰。可以是對稱密鑰或PEM編碼的RSA公鑰。 security.oauth2.resource.prefer-token-info = true#使用token info,可以設置為false來使用用戶信息。 security.oauth2.resource.service-id =資源# security.oauth2.resource.token-info-uri =#令牌解碼端點的URI。 security.oauth2.resource.token-type =#使用userInfoUri時要發送的令牌類型。 security.oauth2.resource.user-info-uri =#用戶端點的URI。 #SECURITY OAUTH2 SSO(OAuth2SsoProperties security.oauth2.sso.filter-order =#如果不提供顯式的WebSecurityConfigurerAdapter security.oauth2.sso.login-path = / login#登錄頁面的路徑,即觸發重定向到OAuth2授權服務器的路徑 #---------------------------------------- #數據屬性 #---------------------------------------- #FLYWAY(FlywayProperties) flyway.baseline-description =# flyway.baseline-version = 1#版本開始遷移 flyway.baseline-on-migrate =# flyway.check-location = false#檢查是否存在遷移腳本位置。 flyway.clean-on-validation-error =# flyway.enabled = true#啟用飛路。 flyway.encoding =# flyway.ignore-failed-future-migration =# flyway.init-sqls =#SQL語句在獲取它之后立即執行以初始化連接。 flyway.locations = classpath:db / migration#遷移腳本的位置 flyway.out-of-order =# flyway.password =#如果您希望Flyway創建自己的DataSource,則使用JDBC密碼 flyway.placeholder-prefix =# flyway.placeholder-replacement =# flyway.placeholder-suffix =# flyway.placeholders。* =# flyway.schemas =#模式更新 flyway.sql-migration-prefix = V# flyway.sql-migration-separator =# flyway.sql-migration-suffix = .sql# flyway.table =# flyway.url =#要遷移的數據庫的JDBC URL。如果未設置,則使用主要配置的數據源。 flyway.user =#登錄要遷移的數據庫的用戶。 flyway.validate-on-migrate =# #LIQUIBASE(LiquibaseProperties) liquibase.change-log = classpath:/db/changelog/db.changelog-master.yaml#更改日志配置路徑。 liquibase.check-change-log-location = true#檢查更改日志位置是否存在。 liquibase.contexts =#使用運行時上下文的逗號分隔列表。 liquibase.default-schema =#默認數據庫模式。 liquibase.drop-first = false#首先刪除數據庫模式。 liquibase.enabled = true#啟用liquibase支持。 liquibase.labels =#使用運行時標簽的逗號分隔列表。 liquibase.parameters。* =#更改日志參數。 liquibase.password =#登錄要遷移的數據庫的密碼。 liquibase.url =#要遷移的數據庫的JDBC URL。如果未設置,則使用主要配置的數據源。 liquibase.user =#登錄要遷移的數據庫的用戶。 #DAO(PersistenceExceptionTranslationAutoConfiguration) spring.dao.exceptiontranslation.enabled = true#啟用PersistenceExceptionTranslationPostProcessor。 #CASSANDRA(CassandraProperties) spring.data.cassandra.cluster-name =#Cassandra集群的名稱。 spring.data.cassandra.compression =#Cassandra二進制協議支持的壓縮。 spring.data.cassandra.connect-timeout-millis =#套接字選項:連接超時。 spring.data.cassandra.consistency-level =#查詢一致性級別。 spring.data.cassandra.contact-points = localhost#群集節點地址的逗號分隔列表。 spring.data.cassandra.fetch-size =#查詢默認獲取大小。 spring.data.cassandra.keyspace-name =#使用的Keyspace名稱。 spring.data.cassandra.load-balancing-policy =#負載均衡策略的類名稱。 spring.data.cassandra.port =#Cassandra服務器的端口。 spring.data.cassandra.password =#登錄服務器的密碼。 spring.data.cassandra.read-timeout-millis =#套接字選項:讀取超時。 spring.data.cassandra.reconnection-policy =#重新連接策略類。 spring.data.cassandra.retry-policy =#重試策略的類名稱。 spring.data.cassandra.serial-consistency-level =#查詢串行一致性級別。 spring.data.cassandra.ssl = false#啟用SSL支持。 spring.data.cassandra.username =#服務器的登錄用戶。 #ELASTICSEARCH(ElasticsearchProperties) spring.data.elasticsearch.cluster-name = elasticsearch#Elasticsearch集群名稱。 spring.data.elasticsearch.cluster-nodes =#以逗號分隔的集群節點地址列表。如果未指定,則啟動客戶機節點。 spring.data.elasticsearch.properties。* =#用于配置客戶端的其他屬性。 spring.data.elasticsearch.repositories.enabled = true#啟用Elasticsearch存儲庫。 #MONGODB(MongoProperties) spring.data.mongodb.authentication-database =#認證數據庫名稱。 spring.data.mongodb.database = test#數據庫名稱。 spring.data.mongodb.field -naming-strategy =#要使用的FieldNamingStrategy的完全限定名稱。 spring.data.mongodb.grid-fs-database =#GridFS數據庫名稱。 spring.data.mongodb.host = localhost#Mongo服務器主機。 spring.data.mongodb.password =#登錄mongo服務器的密碼。 spring.data.mongodb.port = 27017#Mongo服務器端口。 spring.data.mongodb.repositories.enabled = true#啟用Mongo存儲庫。 spring.data.mongodb.uri = mongodb:// localhost / test#Mongo數據庫URI。設置時,主機和端口將被忽略。 spring.data.mongodb.username =#mongo服務器的登錄用戶。 #數據REST(RepositoryRestProperties) spring.data.rest.base-path =#Spring Data REST用于公開資源庫資源的基本路徑。 spring.data.rest.default-page-size =#頁面的默認大小。 spring.data.rest.enable-enum-translation =#通過Spring Data REST默認資源包啟用枚舉值轉換。 spring.data.rest.limit-param-name =#URL查詢字符串參數的名稱,表示一次返回多少個結果。 spring.data.rest.max-page-size =#頁面的最大尺寸。 spring.data.rest.page-param-name =#指示要返回哪個頁面的URL查詢字符串參數的名稱。 spring.data.rest.return-body-on-create =#創建實體后返回響應主體。 spring.data.rest.return-body-on-update =#更新實體后返回響應主體。 spring.data.rest.sort-param-name =#指示排序結果的方向的URL查詢字符串參數的名稱。 #SOLR(SolrProperties) spring.data.solr.host = http://127.0.0.1:8983 / solr#Solr主機。如果設置了“zk-host”,則忽略。 spring.data.solr.repositories.enabled = true#啟用Solr存儲庫。 spring.data.solr.zk-host =#HOST:PORT形式的#ZooKeeper主機地址。 #DATASOURCE(DataSourceAutoConfiguration&DataSourceProperties) spring.datasource.continue-on-error = false#如果在初始化數據庫時發生錯誤,請不要停止。 spring.datasource.data =#數據(DML)腳本資源參考。 spring.datasource.driver-class-name =#JDBC驅動程序的完全限定名稱。默認情況下基于URL自動檢測。 spring.datasource.initialize = true#使用'data.sql'填充數據庫。 spring.datasource.jmx-enabled = false#啟用JMX支持(如果由底層池提供)。 spring.datasource.jndi-name =#數據源的JNDI位置。設置時會忽略類,網址,用戶名和密碼。 spring.datasource.max-active =#例如100 spring.datasource.max-idle =#例如8 spring.datasource.max等待= spring.datasource.min-evictable空閑時間-米利斯= spring.datasource.min空閑= 8 spring.datasource.name = testdb#數據源的名稱。 spring.datasource.password =#登錄數據庫的密碼。 spring.datasource.platform = all#架構資源中使用的平臺(架構 - $ {platform} .sql)。 spring.datasource.schema =#架構(DDL)腳本資源引用。 spring.datasource.separator =; #SQL初始化腳本中的語句分隔符。 spring.datasource.sql-script-encoding =#SQL腳本編碼。 spring.datasource.test-on-borrow =#例如`false` spring.datasource.test-on-return =#例如`false` spring.datasource.test-while-idle =# spring.datasource.time-between-eviction-runs-millis = 1 spring.datasource.type =#要使用的連接池實現的完全限定名稱。默認情況下,它是從類路徑中自動檢測的。 spring.datasource.url =#數據庫的JDBC URL。 spring.datasource.username = spring.datasource.validation查詢= #H2 Web控制臺(H2ConsoleProperties) spring.h2.console.enabled = false#啟用控制臺。 spring.h2.console.path = / h2-console#控制臺可用的路徑。 #JOOQ(JooqAutoConfiguration) spring.jooq.sql-dialect =#與配置的數據源進行通信時使用的SQLDialect JOOQ。例如`POSTGRES` #JPA(JpaBaseConfiguration,HibernateJpaAutoConfiguration) spring.data.jpa.repositories.enabled = true#啟用JPA存儲庫。 spring.jpa.database =#目標數據庫進行操作,默認為自動檢測。可以使用“databasePlatform”屬性進行替代設置。 spring.jpa.database-platform =#要運行的目標數據庫的名稱,默認為自動檢測。也可以使用“數據庫”枚舉進行設置。 spring.jpa.generate-ddl = false#啟動時初始化模式。 spring.jpa.hibernate.ddl-auto =#DDL模式。這實際上是“hibernate.hbm2ddl.auto”屬性的快捷方式。使用嵌入式數據庫時默認為“創建 - 刪除”,否則為“無”。 spring.jpa.hibernate.naming-strategy =#命名策略完全限定名稱。 spring.jpa.open-in-view = true#注冊OpenEntityManagerInViewInterceptor。將JPA EntityManager綁定到線程,以完成請求的整個處理。 spring.jpa.properties。* =#在JPA提供程序上設置的其他本機屬性。 spring.jpa.show-sql = false#啟用SQL語句的日志記錄。 #JTA(JtaAutoConfiguration) spring.jta.log-dir =#事務日志目錄。 #ATOMIKOS spring.jta.checkpoint-interval = 500#檢查點之間的間隔。 spring.jta.console-file-count = 1#可以創建的調試日志文件的數量。 spring.jta.console-file-limit = -1#調試日志文件中最多可以存儲多少個字節。 spring.jta.console-file-name = tm.out#調試日志文件名。 spring.jta.console-log-level =#控制臺日志級別。 spring.jta.default-jta-timeout = 10000#JTA事務的默認超時。 spring.jta.enable-logging = true#啟用磁盤日志記錄。 spring.jta.force-shutdown-on-vm-exit = false#指定VM關閉是否應該觸發強制關閉事務內核。 spring.jta.log-base-dir =#應該存儲日志文件的目錄。 spring.jta.log-base-name = tmlog#事務日志文件的基本名稱。 spring.jta.max-actives = 50#活動事務的最大數量。 spring.jta.max-timeout = 300000#可以允許事務處理的最大超時時間(以毫秒為單位)。 spring.jta.output-dir =#用于存儲調試日志文件的目錄。 spring.jta.serial-jta-transactions = true#指定是否應盡可能地加入子交易。 spring.jta.service =#應該啟動的事務管理器實現。 spring.jta.threaded-two-phase-commit = true#在參與資源上使用不同(并發)線程進行兩階段提交。 spring.jta.transaction-manager-unique-name =#事務管理器的唯一名稱。 spring.jta.atomikos.connectionfactory.borrow-connection-timeout = 30#用于從池中借用連接的超時,以秒為單位。 spring.jta.atomikos.connectionfactory.ignore-session-transacted-flag = true#創建會話時是否忽略事務處理標志。 spring.jta.atomikos.connectionfactory.local-transaction-mode = false#是否需要本地事務。 spring.jta.atomikos.connectionfactory.maintenance-interval = 60#池的維護線程運行之間的時間,以秒為單位。 spring.jta.atomikos.connectionfactory.max-idle-time = 60#從池中清除連接之后的時間,以秒為單位。 spring.jta.atomikos.connectionfactory.max-lifetime = 0#以秒為單位的連接可以在被銷毀前匯集的時間。0表示沒有限制。 spring.jta.atomikos.connectionfactory.max-pool-size = 1#池的最大尺寸。 spring.jta.atomikos.connectionfactory.min-pool-size = 1#池的最小大小。 spring.jta.atomikos.connectionfactory.reap-timeout = 0#借用連接的收獲超時(以秒為單位)。0表示沒有限制。 spring.jta.atomikos.connectionfactory.unique-resource-name = jmsConnectionFactory#在恢復期間用于標識資源的唯一名稱。 spring.jta.atomikos.datasource.borrow-connection-timeout = 30#用于從池中借用連接的超時,以秒為單位。 spring.jta.atomikos.datasource.default-isolation-level =#池提供的連接的默認隔離級別。 spring.jta.atomikos.datasource.login-timeout =#建立數據庫連接的超時時間,以秒為單位。 spring.jta.atomikos.datasource.maintenance-interval = 60#池維護線程運行之間的時間(以秒為單位)。 spring.jta.atomikos.datasource.max-idle-time = 60#從池中清除連接之后的時間,以秒為單位。 spring.jta.atomikos.datasource.max-lifetime = 0#以秒為單位的連接可以在被銷毀前匯集的時間。0表示沒有限制。 spring.jta.atomikos.datasource.max-pool-size = 1#池的最大尺寸。 spring.jta.atomikos.datasource.min-pool-size = 1#池的最小大小。 spring.jta.atomikos.datasource.reap-timeout = 0#借用連接的收獲超時(以秒為單位)。0表示沒有限制。 spring.jta.atomikos.datasource.test-query =#返回之前用于驗證連接的SQL查詢或語句。 spring.jta.atomikos.datasource.unique-resource-name = dataSource#在恢復期間用于標識資源的唯一名稱。 #BITRONIX spring.jta.allow-multiple-lrc = false#允許多個LRC資源登記到同一個事務中。 spring.jta.asynchronous2-pc = false#啟用異步執行兩階段提交。 spring.jta.background-recovery-interval-seconds = 60#在后臺運行恢復進程的時間間隔(以秒為單位)。 spring.jta.current-node-only-recovery = true#僅恢復當前節點。 spring.jta.debug-zero-resource-transaction = false#記錄創建和提交調用堆棧的事務執行沒有一個登記資源。 spring.jta.default-transaction-timeout = 60#以秒為單位的默認事務超時。 spring.jta.disable-jmx = false#啟用JMX支持。 spring.jta.exception-analyzer =#設置要使用的異常分析器實現的完全限定名稱。 spring.jta.filter-log-status = false#啟用對日志的過濾,以便僅寫入強制日志。 spring.jta.force-batching-enabled = true#設置是否對磁盤部隊進行批處理。 spring.jta.forced-write-enabled = true#設置日志是否強制為磁盤。 spring.jta.graceful-shutdown-interval = 60#TM在關閉時間終止事務之前等待事務完成的最大時間量。 spring.jta.jndi-transaction-synchronization-registry-name =#TransactionSynchronizationRegistry的JNDI名稱。 spring.jta.jndi-user-transaction-name =#UserTransaction的JNDI名稱。 spring.jta.journal = disk#期刊的名稱。可以是'磁盤','空'或類名。 spring.jta.log-part1-filename = btm1.tlog#日志的第一個片段的名稱。 spring.jta.log-part2-filename = btm2.tlog#日志的第二個片段的名稱。 spring.jta.max-log-size-in-mb = 2#日志片段的最大大小(以兆字節為單位)。 spring.jta.resource-configuration-filename =#ResourceLoader配置文件名。 spring.jta.server-id =#必須唯一標識此TM實例的ASCII ID。默認為機器的IP地址。 spring.jta.skip-corrupted-logs = false#跳過損壞的事務日志條目。 spring.jta.warn-about-zero-resource-transaction = true#為未執行單個登記資源的事務記錄警告。 spring.jta.bitronix.connectionfactory.acquire-increment = 1#增長池時創建的連接數。 spring.jta.bitronix.connectionfactory.acquisition-interval = 1#在獲取無效連接后嘗試重新獲取連接之前,需要等待的時間(以秒為單位)。 spring.jta.bitronix.connectionfactory.acquisition-timeout = 30#以秒為單位的超時時間,用于從池中獲取連接。 spring.jta.bitronix.connectionfactory.allow-local-transactions = true#事務管理器是否應允許混合XA和非XA事務。 spring.jta.bitronix.connectionfactory.apply-transaction-timeout = false#在登記時是否應在XAResource上設置事務超時。 spring.jta.bitronix.connectionfactory.automatic-enlisting-enabled = true#資源是否應該自動登記和除名。 spring.jta.bitronix.connectionfactory.cache-producer-consumers = true#是否生產和消費者應該被緩存。 spring.jta.bitronix.connectionfactory.defer-connection-release = true#提供者是否可以在同一連接上運行多個事務并支持事務交叉。 spring.jta.bitronix.connectionfactory.ignore-recovery-failures = false#是否應該忽略恢復失敗。 spring.jta.bitronix.connectionfactory.max-idle-time = 60#連接從池中清理之后的時間,以秒為單位。 spring.jta.bitronix.connectionfactory.max-pool-size = 10#池的最大尺寸。0表示沒有限制。 spring.jta.bitronix.connectionfactory.min-pool-size = 0#池的最小大小。 spring.jta.bitronix.connectionfactory.password =#用于連接到JMS提供程序的密碼。 spring.jta.bitronix.connectionfactory.share-transaction-connections = false#是否可以在事務上下文中共享ACCESSIBLE狀態下的連接。 spring.jta.bitronix.connectionfactory.test-connections = true#是否應該從池中獲取連接時測試連接。 spring.jta.bitronix.connectionfactory.two-pc-ordering-position = 1#這個資源在兩階段提交期間應該采取的位置(總是首先是Integer.MIN_VALUE,總是最后是Integer.MAX_VALUE)。 spring.jta.bitronix.connectionfactory.unique-name = jmsConnectionFactory#在恢復期間用于標識資源的唯一名稱。 spring.jta.bitronix.connectionfactory.use-tm-join = true在啟動XAResources時是否應該使用TMJOIN。 spring.jta.bitronix.connectionfactory.user =#用于連接到JMS提供者的用戶。 spring.jta.bitronix.datasource.acquire-increment = 1#增長池時創建的連接數。 spring.jta.bitronix.datasource.acquisition-interval = 1#在獲取無效連接后,嘗試再次獲取連接之前的等待時間,以秒為單位。 spring.jta.bitronix.datasource.acquisition-timeout = 30#以秒為單位超時獲取池中的連接。 spring.jta.bitronix.datasource.allow-local-transactions = true#事務管理器是否應允許混合XA和非XA事務。 spring.jta.bitronix.datasource.apply-transaction-timeout = false#在注冊時是否應該在XAResource上設置事務超時。 spring.jta.bitronix.datasource.automatic-enlisting-enabled = true#資源是否應該自動登記和除名。 spring.jta.bitronix.datasource.cursor-holdability =#連接的默認光標可保存性。 spring.jta.bitronix.datasource.defer-connection-release = true#數據庫是否可以在同一連接上運行多個事務并支持事務交叉。 spring.jta.bitronix.datasource.enable -jdbc4-connection-test =#是否在從池中獲取連接時調用Connection.isValid()。 spring.jta.bitronix.datasource.ignore-recovery-failures = false#是否應該忽略恢復失敗。 spring.jta.bitronix.datasource.isolation-level =#連接的默認隔離級別。 spring.jta.bitronix.datasource.local-auto-commit =#本地事務的默認自動提交模式。 spring.jta.bitronix.datasource.login-timeout =#建立數據庫連接的超時時間,以秒為單位。 spring.jta.bitronix.datasource.max-idle-time = 60#從池中清除連接之后的時間,以秒為單位。 spring.jta.bitronix.datasource.max-pool-size = 10#池的最大尺寸。0表示沒有限制。 spring.jta.bitronix.datasource.min-pool-size = 0#池的最小尺寸。 spring.jta.bitronix.datasource.prepared-statement-cache-size = 0#準備好的語句緩存的目標大小。0禁用緩存。 spring.jta.bitronix.datasource.share-transaction-connections = false#是否可以在事務上下文中共享ACCESSIBLE狀態下的連接。 spring.jta.bitronix.datasource.test-query =#返回之前用于驗證連接的SQL查詢或語句。 spring.jta.bitronix.datasource.two-pc-ordering-position = 1#這個資源在兩階段提交期間應該采用的位置(總是首先是Integer.MIN_VALUE,總是最后是Integer.MAX_VALUE)。 spring.jta.bitronix.datasource.unique-name = dataSource#在恢復期間用于標識資源的唯一名稱。 spring.jta.bitronix.datasource.use-tm-join = true在啟動XAResources時是否應使用TMJOIN。 #EMBEDDED MONGODB(EmbeddedMongoProperties) spring.mongodb.embedded.features = SYNC_DELAY#要啟用的功能的逗號分隔列表。 spring.mongodb.embedded.version = 2.6.10#使用Mongo版本。 #REDIS(RedisProperties) spring.redis.database = 0#連接工廠使用的數據庫索引。 spring.redis.host = localhost#Redis服務器主機。 spring.redis.password =#登錄redis服務器的密碼。 spring.redis.pool.max-active = 8#池在給定時間可以分配的最大連接數。使用負值無限制。 spring.redis.pool.max-idle = 8#池中“空閑”連接的最大數量。使用負值表示無限數量的空閑連接。 spring.redis.pool.max-wait = -1#連接分配在池耗盡時拋出異常之前應阻塞的最長時間量(以毫秒為單位)。使用負值可以無限期地阻止。 spring.redis.pool.min-idle = 0#目標為保持在池中的最小空閑連接數。如果該設置是肯定的,則該設置僅起作用。 spring.redis.port = 6379#Redis服務器端口。 spring.redis.sentinel.master =#Redis服務器的名稱。 spring.redis.sentinel.nodes =#主機:端口對的逗號分隔列表。 spring.redis.timeout = 0#連接超時(以毫秒為單位)。 #---------------------------------------- #整合特性 #---------------------------------------- #ACTIVEMQ(ActiveMQProperties) spring.activemq.broker-url =#ActiveMQ代理的URL。自動生成默認。例如`tcp:// localhost:61616` spring.activemq.in-memory = true#指定默認代理URL是否應該在內存中。如果指定了明確的代理,則忽略。 spring.activemq.password =#登錄經紀人的密碼。 spring.activemq.pooled = false#指定是否應創建PooledConnectionFactory而不是常規的ConnectionFactory。 spring.activemq.user =#代理的登錄用戶。 #ARTEMIS(ArtemisProperties) spring.artemis.embedded.cluster-password =#集群密碼。默認情況下在啟動時隨機生成。 spring.artemis.embedded.data-directory =#日記文件目錄。如果關閉持久性,則不需要。 spring.artemis.embedded.enabled = true#如果Artemis服務器API可用,則啟用嵌入模式。 spring.artemis.embedded.persistent = false#啟用持久存儲。 spring.artemis.embedded.queues =#在啟動時創建的逗號分隔列表。 spring.artemis.embedded.server-id =#服務器ID。默認情況下,使用自動遞增的計數器。 spring.artemis.embedded.topics =#啟動時要創建的主題的逗號分隔列表。 spring.artemis.host = localhost#阿蒂米斯經紀人主機。 spring.artemis.mode =#Artemis部署模式,默認為自動檢測。可以明確設置為“本地”或“嵌入”。 spring.artemis.port = 61616#阿蒂米斯經紀人港口。 #SPRING BATCH(BatchProperties) spring.batch.initializer.enabled = true#如果需要,在啟動時創建所需的批處理表。 spring.batch.job.enabled = true#啟動時執行上下文中的所有Spring批處理作業。 spring.batch.job.names =#逗號分隔的啟動時要執行的作業名稱列表(例如`job1,job2`)。默認情況下,執行在上下文中找到的所有作業。 spring.batch.schema = classpath:org / springframework / batch / core / schema - @@ platform @@。sql#用于初始化數據庫模式的SQL文件的路徑。 spring.batch.table-prefix =#所有批量元數據表的表前綴。 #HORNETQ(HornetQProperties) spring.hornetq.embedded.cluster-password =#集群密碼。默認情況下在啟動時隨機生成。 spring.hornetq.embedded.data-directory =#日記文件目錄。如果關閉持久性,則不需要。 spring.hornetq.embedded.enabled = true#如果HornetQ服務器API可用,則啟用嵌入模式。 spring.hornetq.embedded.persistent = false#啟用持久存儲。 spring.hornetq.embedded.queues =#在啟動時創建的逗號分隔列表。 spring.hornetq.embedded.server-id =#服務器ID。默認情況下,使用自動遞增的計數器。 spring.hornetq.embedded.topics =#在啟動時創建的以逗號分隔的主題列表。 spring.hornetq.host = localhost#HornetQ代理主機。 spring.hornetq.mode =#HornetQ部署模式,默認為自動檢測。可以明確設置為“本地”或“嵌入”。 spring.hornetq.port = 5445#HornetQ經紀人端口。 #JMS(JmsProperties) spring.jms.jndi-name =#連接工廠的JNDI名稱。設置時,優先于其他連接工廠自動配置。 spring.jms.listener.acknowledge-mode =#容器的確認模式。默認情況下,偵聽器通過自動確認進行事務處理。 spring.jms.listener.auto-startup = true#啟動時自動啟動容器。 spring.jms.listener.concurrency =#最小并發消費者數量。 spring.jms.listener.max-concurrency =#最大并發消費者數量。 spring.jms.pub-sub-domain = false#指定默認目標類型是否為主題。 #兔子(兔子屬性) spring.rabbitmq.addresses =#客戶端應連接到的地址的逗號分隔列表。 spring.rabbitmq.dynamic = true#創建一個AmqpAdmin bean。 spring.rabbitmq.host = localhost#RabbitMQ主機。 spring.rabbitmq.listener.acknowledge-mode =#容器的確認模式。 spring.rabbitmq.listener.auto-startup = true#啟動時自動啟動容器。 spring.rabbitmq.listener.concurrency =#消費者的最小數量。 spring.rabbitmq.listener.max-concurrency =#消費者的最大數量。 spring.rabbitmq.listener.prefetch =#在單個請求中要處理的消息數。它應該大于或等于事務大小(如果使用)。 spring.rabbitmq.listener.transaction-size =#事務中要處理的消息數。為了獲得最佳結果,它應該小于或等于預取計數。 spring.rabbitmq.password =#登錄對經紀人進行身份驗證。 spring.rabbitmq.port = 5672#RabbitMQ端口。 spring.rabbitmq.requested-heartbeat =#請求的心跳超時,以秒為單位; 零為零。 spring.rabbitmq.ssl.enabled = false#啟用SSL支持。 spring.rabbitmq.ssl.key-store =#保存SSL證書的密鑰存儲區的路徑。 spring.rabbitmq.ssl.key-store-password =#用于訪問密鑰存儲區的密碼。 spring.rabbitmq.ssl.trust-store =#持有SSL證書的信任庫。 spring.rabbitmq.ssl.trust-store-password =#用于訪問信任存儲的密碼。 spring.rabbitmq.ssl.algorithm =#使用的SSL算法。默認情況下由rabbit客戶端庫配置。 spring.rabbitmq.username =#登錄用戶向代理進行身份驗證。 spring.rabbitmq.virtual-host =#連接到代理時使用的虛擬主機。 #---------------------------------------- #執行器屬性 #---------------------------------------- #ENDPOINTS(AbstractEndpoint子類) endpoints.enabled = true#啟用端點。 endpoints.sensitive =#默認的端點敏感設置。 endpoints.actuator.enabled = true#啟用端點。 endpoints.actuator.path =#端點URL路徑。 endpoints.actuator.sensitive = false#啟用端點的安全性。 endpoints.autoconfig.enabled =#啟用端點。 endpoints.autoconfig.id =#端點標識符。 endpoints.autoconfig.sensitive =#標記端點是否暴露敏感信息。 endpoints.beans.enabled =#啟用端點。 endpoints.beans.id =#端點標識符。 endpoints.beans.sensitive =#標記端點是否暴露敏感信息。 endpoints.configprops.enabled =#啟用端點。 endpoints.configprops.id =#端點標識符。 endpoints.configprops.keys-to-sanitize =密碼,密鑰,密鑰,。*憑證。*,vcap_services#應該清理的密鑰。鍵可以是屬性以或正則表達式結束的簡單字符串。 endpoints.configprops.sensitive =#標記端點是否公開敏感信息。 endpoints.docs.curies.enabled = false#啟用居里代。 endpoints.docs.enabled = true#啟用執行器文檔終結點。 endpoints.docs.path = / docs# endpoints.docs.sensitive = false# endpoints.dump.enabled =#啟用端點。 endpoints.dump.id =#端點標識符。 endpoints.dump.sensitive =#標記端點是否暴露敏感信息。 endpoints.env.enabled =#啟用端點。 endpoints.env.id =#端點標識符。 endpoints.env.keys-to-sanitize =密碼,密鑰,密鑰,。*憑證。*,vcap_services#應該清理的密鑰。鍵可以是屬性以或正則表達式結束的簡單字符串。 endpoints.env.sensitive =#標記端點是否暴露敏感信息。 endpoints.flyway.enabled =#啟用端點。 endpoints.flyway.id =#端點標識符。 endpoints.flyway.sensitive =#標記端點是否暴露敏感信息。 endpoints.health.enabled =#啟用端點。 endpoints.health.id =#端點標識符。 endpoints.health.mapping。* =#健康狀態到HttpStatus代碼的映射。默認情況下,注冊的健康狀態映射到合理的默認值(即UP地圖為200)。 endpoints.health.sensitive =#標記端點是否暴露敏感信息。 endpoints.health.time-to-live = 1000#緩存結果的生存時間(以毫秒為單位)。 endpoints.info.enabled =#啟用端點。 endpoints.info.id =#端點標識符。 endpoints.info.sensitive =#標記端點是否暴露敏感信息。 endpoints.jolokia.enabled = true#啟用Jolokia端點。 endpoints.jolokia.path = / jolokia#端點URL路徑。 endpoints.jolokia.sensitive = true#啟用端點的安全性。 endpoints.liquibase.enabled =#啟用端點。 endpoints.liquibase.id =#端點標識符。 endpoints.liquibase.sensitive =#標記端點是否暴露敏感信息。 endpoints.logfile.enabled = true#啟用端點。 endpoints.logfile.path = / logfile#端點URL路徑。 endpoints.logfile.sensitive = true#在端點上啟用安全性。 endpoints.mappings.enabled =#啟用端點。 endpoints.mappings.id =#端點標識符。 endpoints.mappings.sensitive =#標記端點是否暴露敏感信息。 endpoints.metrics.enabled =#啟用端點。 endpoints.metrics.filter.enabled = true#啟用度量servlet過濾器。 endpoints.metrics.id =#端點標識符。 endpoints.metrics.sensitive =#標記端點是否暴露敏感信息。 endpoints.shutdown.enabled =#啟用端點。 endpoints.shutdown.id =#端點標識符。 endpoints.shutdown.sensitive =#標記端點是否暴露敏感信息。 endpoints.trace.enabled =#啟用端點。 endpoints.trace.id =#端點標識符。 endpoints.trace.sensitive =#標記端點是否暴露敏感信息。 #ENDPOINTS CORS配置(EndpointCorsProperties) endpoints.cors.allow-credentials =#設置是否支持憑證。未設置時,不支持憑證。 endpoints.cors.allowed-headers =#在請求中允許使用逗號分隔的標題列表。'*'允許所有標題。 endpoints.cors.allowed-methods = GET#逗號分隔的允許的方法列表。'*'允許所有方法。 endpoints.cors.allowed-origins =#逗號分隔的起源列表允許。'*'允許所有的來源。未設置時,CORS支持被禁用。 endpoints.cors.exposed-headers =#逗號分隔的標題列表包含在響應中。 endpoints.cors.max-age = 1800#以秒為單位,客戶端可以緩存飛行前請求的響應。 #JMX ENDPOINT(EndpointMBeanExportProperties) endpoints.jmx.domain =#JMX域名。如果設置,則使用'spring.jmx.default-domain'的值進行初始化。 endpoints.jmx.enabled = true#啟用所有端點的JMX導出。 endpoints.jmx.static-names =#附加到所有表示端點的MBean的ObjectName的靜態屬性。 endpoints.jmx.unique-names = false#確保ObjectNames在發生沖突時被修改。 #JOLOKIA(JolokiaProperties) jolokia.config。* =#請參閱Jolokia手冊 #管理HTTP服務器(ManagementServerProperties) management.add-application-context-header = true#在每個響應中添加“X-Application-Context”HTTP標頭。 management.address =#管理端點應該綁定的網絡地址。 management.context-path =#管理端點上下文路徑。例如`/執行器' management.port =#管理端點HTTP端口。默認使用與應用程序相同的端口。 management.security.enabled = true#啟用安全性。 management.security.role = ADMIN#訪問管理端點所需的角色。 management.security.sessions =無狀態#會話創建策略使用(永遠,從不,if_required,無狀態)。 #健康指標(以前為健康*) management.health.db.enabled = true#啟用數據庫運行狀況檢查。 management.health.defaults.enabled = true#啟用默認運行狀況指示器。 management.health.diskspace.enabled = true#啟用磁盤空間運行狀況檢查。 management.health.diskspace.path =#用于計算可用磁盤空間的路徑。 management.health.diskspace.threshold = 0#應該可用的最小磁盤空間,以字節為單位。 management.health.elasticsearch.enabled = true#啟用elasticsearch運行狀況檢查。 management.health.elasticsearch.indices =#逗號分隔的索引名稱。 management.health.elasticsearch.response-timeout = 100#等待群集響應的時間(以毫秒為單位)。 management.health.jms.enabled = true#啟用JMS運行狀況檢查。 management.health.mail.enabled = true#啟用郵件運行狀況檢查。 management.health.mongo.enabled = true#啟用MongoDB運行狀況檢查。 management.health.rabbit.enabled = true#啟用RabbitMQ運行狀況檢查。 management.health.redis.enabled = true#啟用Redis運行狀況檢查。 management.health.solr.enabled = true#啟用Solr運行狀況檢查。 management.health.status.order = DOWN,OUT_OF_SERVICE,UNKNOWN,UP#以嚴重性順序的逗號分隔的健康狀態列表。 #TRACING((TraceProperties) management.trace.include =請求標題,響應標題,錯誤#要包含在跟蹤中的項目。 #遠程外殼 shell.auth = simple#認證類型。根據環境自動檢測。 shell.auth.jaas.domain =我的域#JAAS域。 shell.auth.key.path =#認證密鑰的路徑。這應該指向一個有效的“.pem”文件。 shell.auth.simple.user.name = user#登錄用戶。 shell.auth.simple.user.password =#登錄密碼。 shell.auth.spring.roles = ADMIN#用于登錄到CRaSH控制臺的所需角色的逗號分隔列表。 shell.command-path-patterns = classpath *:/ commands / **,classpath *:/ crash / commands / **#用于查找命令的模式。 shell.command-refresh-interval = -1#如果需要(以秒為單位),掃描更改并更新命令。 shell.config-path-patterns = classpath *:/ crash / *#用于查找配置的模式。 shell.disabled-commands = jpa *,jdbc *,jndi *#禁用命令的逗號分隔列表。 shell.disabled-plugins =#禁用逗號分隔的插件列表。根據環境,某些插件默認處于禁用狀態。 shell.ssh.auth-timeout =#用戶將被提示再次登錄后的毫秒數。 shell.ssh.enabled = true#啟用CRaSH SSH支持。 shell.ssh.idle-timeout =#關閉未使用的連接之后的毫秒數。 shell.ssh.key-path =#SSH服務器密鑰的路徑。 shell.ssh.port = 2000#SSH端口。 shell.telnet.enabled = false#啟用CRaSH telnet支持。如果TelnetPlugin可用,則默認啟用。 shell.telnet.port = 5000#Telnet端口。 #GIT信息 spring.git.properties =#生成的git信息屬性文件的資源引用。 #METRICS EXPORT(MetricExportProperties) spring.metrics.export.aggregate.key-pattern =#告訴聚合器如何處理源存儲庫中的密鑰的模式。 spring.metrics.export.aggregate.prefix =#全局存儲庫的前綴(如果處于活動狀態)。 spring.metrics.export.delay-millis = 5000#導出刻度之間的延遲(以毫秒為單位)。按照計劃將度量標準導出到外部源,并且延遲。 spring.metrics.export.enabled = true#啟用度量標準導出的標志(假設MetricWriter可用)。 spring.metrics.export.excludes =#要排除的度量標準名稱的模式列表。包含后應用。 spring.metrics.export.includes =#要包含的度量標準名稱的模式列表。 spring.metrics.export.redis.key = keys.spring.metrics#Redis存儲庫導出密鑰(如果處于活動狀態)。 spring.metrics.export.redis.prefix = spring.metrics#如果處于活動狀態,則Redis存儲庫的前綴。 spring.metrics.export.send-latest =#根據不導出未更改的度量標準值,標記關閉任何可用的優化。 spring.metrics.export.statsd.host =#接收導出指標的statsd服務器的主機。 spring.metrics.export.statsd.port = 8125#接收導出指標的statsd服務器的端口。 spring.metrics.export.statsd.prefix =#statsd導出指標的前綴。 spring.metrics.export.triggers。* =#每個MetricWriter bean名稱的特定觸發器屬性。 #---------------------------------------- #DEVTOOLS屬性 #---------------------------------------- #DEVTOOLS(DevToolsProperties) spring.devtools.livereload.enabled = true#啟用livereload.com兼容服務器。 spring.devtools.livereload.port = 35729#服務器端口。 spring.devtools.restart.additional-exclude =#應該從觸發完全重新啟動時排除的其他模式。 spring.devtools.restart.additional-paths =#觀察更改的其他路徑。 spring.devtools.restart.enabled = true#啟用自動重啟。 spring.devtools.restart.exclude = META-INF /行家/ **,META-INF /資源/ **,資源/ **,靜態/ **,公共/ **,模板/ **,** / * Test.class,** / * Tests.class,git.properties#應該排除觸發完全重新啟動的模式。 spring.devtools.restart.poll-interval = 1000#輪詢類路徑更改之間等待的時間(以毫秒為單位)。 spring.devtools.restart.quiet-period = 400#觸發重新啟動之前,沒有任何類路徑更改所需的安靜時間(以毫秒為單位)。 spring.devtools.restart.trigger-file =#特定文件的名稱,在更改時會觸發重新啟動檢查。如果未指定,則任何類路徑文件更改都將觸發重新啟動。 #REMOTE DEVTOOLS(RemoteDevToolsProperties) spring.devtools.remote.context-path = /。~~ spring-boot!?#用于處理遠程連接的上下文路徑。 spring.devtools.remote.debug.enabled = true#啟用遠程調試支持。 spring.devtools.remote.debug.local-port = 8000#本地遠程調試服務器端口。 spring.devtools.remote.proxy.host =#用于連接遠程應用程序的代理主機。 spring.devtools.remote.proxy.port =#用于連接遠程應用程序的代理端口。 spring.devtools.remote.restart.enabled = true#啟用遠程重啟。 spring.devtools.remote.secret =#建立連接所需的共享密鑰(啟用遠程支持所必需的)。 spring.devtools.remote.secret-header-name = X-AUTH-TOKEN#用于傳輸共享密鑰的HTTP頭。總結
以上是生活随笔為你收集整理的spring boot 配置文件的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【Redis】Redis配置文件详解
- 下一篇: windows7 快捷方式 图标显示异常