2.Spring-Boot Configuration Common explained

mvc

  • spring.mvc.async.request-timeout

Async timeout setting request, in milliseconds, if not set, to achieve a particular subject timeout, such as the tomcat servlet3 then 10 seconds.

  • spring.mvc.date-format

Formatting date, such dd / MM / yyyy.

  • spring.mvc.favicon.enabled

Whether to support favicon.ico, default: true

  • spring.mvc.ignore-default-model-on-redirect

When redirecting whether to ignore the contents of the default model, the default is true

  • spring.mvc.locale

Locale designated use.

  • spring.mvc.message-codes-resolver-format

Specifies the message codes formatting strategy (PREFIX_ERROR_CODE, POSTFIX_ERROR_CODE).

  • spring.mvc.view.prefix

Specifies the prefix mvc view.

  • spring.mvc.view.suffix

Specifies the suffix mvc view.

messages

  • spring.messages.basename

Specifies the message of basename, more comma-separated, if not the package name, the default path starting from the classpath, default: messages

  • spring.messages.cache-seconds

Set loaded resource file cache invalidation time, -1 if never expire, defaults to -1

  • spring.messages.encoding

Set coding Message bundles default: UTF-8

mobile

  • spring.mobile.devicedelegatingviewresolver.enable-fallback

Whether to support the fallback solution, default false

  • spring.mobile.devicedelegatingviewresolver.enabled

Whether to start device view resolver, the default is: false

  • spring.mobile.devicedelegatingviewresolver.mobile-prefix

Setting an end view of the mobile prefix, default: mobile /

  • spring.mobile.devicedelegatingviewresolver.mobile-suffix

Setting view suffix mobile

  • spring.mobile.devicedelegatingviewresolver.normal-prefix

Normal view prefix setting device

  • spring.mobile.devicedelegatingviewresolver.normal-suffix

Normal extension setting device view

  • spring.mobile.devicedelegatingviewresolver.tablet-prefix

Tablet view prefix set, default: tablet /

  • spring.mobile.devicedelegatingviewresolver.tablet-suffix

Setting tablet view suffix.

  • spring.mobile.sitepreference.enabled

Whether to enable SitePreferenceHandler, default: true

view

  • spring.view.prefix

Setting prefix mvc view.

  • spring.view.suffix

Set suffix mvc view.

resource

  • spring.resources.add-mappings

Whether to open the default resource processing, the default is true

  • spring.resources.cache-period

Set cache resource limitations, in seconds.

  • spring.resources.chain.cache

Whether to open the cache, the default is: true

  • spring.resources.chain.enabled

Whether to open the resource handling chain, the default is false

  • spring.resources.chain.html-application-cache

H5 whether to open the application cache manifest rewritten, the default is: false

  • spring.resources.chain.strategy.content.enabled

Whether to open content version of the policy, the default is false

  • spring.resources.chain.strategy.content.paths

To apply the specified version of the path, a plurality of separated by commas, default: [/ *]

  • spring.resources.chain.strategy.fixed.enabled

Whether to open a fixed version of the policy, the default is false

  • spring.resources.chain.strategy.fixed.paths

Specifies the path to apply the version of the policy, more separated by commas

  • spring.resources.chain.strategy.fixed.version

Specifies the version number of strategies to use

  • spring.resources.static-locations

Specify a static resource path, default classpath: [/ META-INF / resources /, / resources /, / static /, / public /] and context: /

multipart

  • multipart.enabled

Whether to open the file upload support, default is true

  • multipart.file-size-threshold

Write threshold settings file disk in MB or KB, the default is 0

  • multipart.location

Specify the file upload path.

  • multipart.max-file-size

Specifies the maximum file size, default 1MB

  • multipart.max-request-size

Each request specified maximum, the default is 10MB

freemarker

  • spring.freemarker.allow-request-override

Specifies whether the HttpServletRequest attributes can cover the same name as the model of the controller

  • spring.freemarker.allow-session-override

HttpSession specify whether the attribute can override the same name as the model of the controller

  • spring.freemarker.cache

Whether to open template caching.

  • spring.freemarker.charset

Template set of coding.

  • spring.freemarker.check-template-location

Check that the templates path exists.

  • spring.freemarker.content-type

Set the Content-Type.

  • spring.freemarker.enabled

Mvc whether to allow the use of freemarker.

  • spring.freemarker.expose-request-attributes

All property is set in the request to merge template when and whether to have added to the model.

  • spring.freemarker.expose-session-attributes

All setting HttpSession attributes to merge template when and whether to have added to the model.

  • spring.freemarker.expose-spring-macro-helpers

Set whether in the form of springMacroRequestContext RequestContext exposed to Spring's macro library use

  • spring.freemarker.prefer-file-system-access

Whether priority load template from the file system to support the thermal load, the default is true

  • spring.freemarker.prefix

Freemarker set prefix template.

  • spring.freemarker.request-context-attribute

RequestContext specify the name of the property.

  • spring.freemarker.settings

Set FreeMarker keys.

  • spring.freemarker.suffix

Set suffix template.

  • spring.freemarker.template-loader-path

Setting template loading path, a plurality of separated by commas, default: [ "classpath: / templates /"]

  • spring.freemarker.view-names

Specifies the template list view.

velocity

  • spring.velocity.allow-request-override

Specifies whether the HttpServletRequest attributes can cover the same name as the model of the controller

  • spring.velocity.allow-session-override

HttpSession specify whether the attribute can override the same name as the model of the controller

  • spring.velocity.cache

Whether to open the template cache

  • spring.velocity.charset

Set templates coding

  • spring.velocity.check-template-location

Check whether the template path exists.

  • spring.velocity.content-type

The set value of ContentType

  • spring.velocity.date-tool-attribute

Were exposed to the velocity set the context of the use of DateTool

  • spring.velocity.enabled

Set whether to allow the use of velocity mvc

  • spring.velocity.expose-request-attributes

Whether merge template when the request attributes are added to the model in

  • spring.velocity.expose-session-attributes

Whether merge template when the HttpSession attributes are added to the model in

  • spring.velocity.expose-spring-macro-helpers

Sets whether the name springMacroRequestContext to expose RequestContext to Spring's macro library use

  • spring.velocity.number-tool-attribute

Set exposed to the name of the velocity of context NumberTool

  • spring.velocity.prefer-file-system-access

Whether priority load templates from the file system to support the heat load, the default is true

  • spring.velocity.prefix

Set prefix velocity template.

  • spring.velocity.properties

Set additional attributes of velocity.

  • spring.velocity.request-context-attribute

Setting Name RequestContext attribute of.

  • spring.velocity.resource-loader-path

Set the template path, the default is: classpath: / templates /

  • spring.velocity.suffix

Set suffix velocity template.

  • spring.velocity.toolbox-config-location

Velocity Toolbox setting configuration file path, such /WEB-INF/toolbox.xml.

  • spring.velocity.view-names

Set view names need to be resolved.

thymeleaf

  • spring.thymeleaf.cache

Template cache is turned on by default true

  • spring.thymeleaf.check-template-location

Check whether the template path exists, default true

  • spring.thymeleaf.content-type

Specifies the Content-Type, the default is: text / html

  • spring.thymeleaf.enabled

Whether to allow the use of MVC Thymeleaf, default: true

  • spring.thymeleaf.encoding

Encoding specified template by default: UTF-8

  • spring.thymeleaf.excluded-view-names

Specifies that no view name template, multiple separated by commas.

  • spring.thymeleaf.mode

Mode specified template, specific view StandardTemplateModeHandlers, the default is: HTML5

  • spring.thymeleaf.prefix

Prefix template specified, the default is: classpath: / templates /

  • spring.thymeleaf.suffix

Template suffix specified, the default is: .html

  • spring.thymeleaf.template-resolver-order

Resolution order specified template, the default is the first one.

  • spring.thymeleaf.view-names

View name specified using templates, multiple separated by commas.

mustcache

  • spring.mustache.cache

Are Enable template caching.

  • spring.mustache.charset

Specify the encoding of Template.

  • spring.mustache.check-template-location

Check that the default path exists.

  • spring.mustache.content-type

Specifies the Content-Type.

  • spring.mustache.enabled

Mustcache of whether to open the template support.

  • spring.mustache.prefix

Prefix a specified template, default: classpath: / templates /

  • spring.mustache.suffix

Suffix specified template, default: .html

  • spring.mustache.view-names

View name you want to use a template.

groovy template

  • spring.groovy.template.allow-request-override

Specifies whether the HttpServletRequest attributes can cover the same name as the model of the controller

  • spring.groovy.template.allow-session-override

HttpSession specify whether the attribute can override the same name as the model of the controller

  • spring.groovy.template.cache

Template cache is turned on.

  • spring.groovy.template.charset

Template specify the encoding.

  • spring.groovy.template.check-template-location

Check whether the template path exists.

  • spring.groovy.template.configuration.auto-escape

Whether to automatically troubleshoot variable model when rendering templates, default is: false

  • spring.groovy.template.configuration.auto-indent

Whether to automatically indent when rendering templates, default is false

  • spring.groovy.template.configuration.auto-indent-string

If the automatic indentation enabled, using SPACES or TAB, the default is: SPACES

  • spring.groovy.template.configuration.auto-new-line

Do you want to wrap output when rendering templates, default is false

  • spring.groovy.template.configuration.base-template-class

Specifies the template base class.

  • spring.groovy.template.configuration.cache-templates

Do you want to cache the template, the default is true

  • spring.groovy.template.configuration.declaration-encoding

Encoding used in writing declaration header

  • spring.groovy.template.configuration.expand-empty-elements

<br/> this form is used, this is <br> </br> expansion mode, default: false)

  • spring.groovy.template.configuration.locale

Specifies the template locale.

  • spring.groovy.template.configuration.new-line-string

When the value of enable automatic linefeed, line feed output, the default attribute for the system line.separator

  • spring.groovy.template.configuration.resource-loader-path

Groovy template path is specified, the default is the classpath: / templates /

  • spring.groovy.template.configuration.use-double-quotes

Specify the attributes you want to use double quotes or single quotes, default is false

  • spring.groovy.template.content-type

Specifies the Content-Type.

  • spring.groovy.template.enabled

Whether to open support groovy template.

  • spring.groovy.template.expose-request-attributes

All property is set in the request to merge template when and whether to have added to the model.

  • spring.groovy.template.expose-session-attributes

All property is set in the request to merge template when and whether to have added to the model.

  • spring.groovy.template.expose-spring-macro-helpers

Set whether in the form of springMacroRequestContext RequestContext exposed to Spring's macro library use

  • spring.groovy.template.prefix

Specifies the prefix template.

  • spring.groovy.template.request-context-attribute

RequestContext specify the name of the property.

  • spring.groovy.template.resource-loader-path

Specifies the path to the template, the default is: classpath: / templates /

  • spring.groovy.template.suffix

Suffix specified template

  • spring.groovy.template.view-names

Specifies the name of the template you want to use the view.

http

  • spring.hateoas.apply-to-primary-object-mapper

Whether set also supports object mapper HATEOAS, default: true

  • spring.http.converters.preferred-json-mapper

Whether to prioritize the use of JSON mapper to convert.

  • spring.http.encoding.charset

Specify the http request and corresponding Charset, default: UTF-8

  • spring.http.encoding.enabled

Whether to open encoding support http, the default is true

  • spring.http.encoding.force

Whether to force http requests and responses to be encoded, the default is true

json

  • spring.jackson.date-format

Specify a date format such as yyyy-MM-dd HH: fully qualified name ss, or class specific format: mm

  • spring.jackson.deserialization

Jackson is turned deserialization

  • spring.jackson.generator

Whether to open the json generators.

  • spring.jackson.joda-date-time-format

Specifies Joda date / time format, such as yyyy-MM-dd HH: mm: ss) if it is not configured, as will DateFormat backup.

  • spring.jackson.locale

Locale json designated use.

  • spring.jackson.mapper

Jackson turned on whether the common denominator.

  • spring.jackson.parser

Whether to open the parser characteristics of jackson.

  • spring.jackson.property-naming-strategy

Fully qualified class name specified PropertyNamingStrategy (CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES) or subclass PropertyNamingStrategy specified.

  • spring.jackson.serialization

Whether to open the serialization of jackson.

  • spring.jackson.serialization-inclusion

Specified when serialization attributes inclusion ways, view JsonInclude.Include enumeration.

  • spring.jackson.time-zone

Time zone specified date format, such as America / Los_Angeles or GMT + 10.

jersey

  • spring.jersey.filter.order

Designated Jersey filter of order, default: 0

  • spring.jersey.init

Specify the parameters passed to the initialization of Jersey.

  • spring.jersey.type

Integration of the type specified Jersey, or may be a servlet filter.

                                                                             Micro-channel public number: 

                                               

                                                                             JAVA program ape growth path

                          Resource sharing, recording program ape growing little by little. Focus on Java, Spring, SpringBoot, SpringCloud, distributed, slightly services. 

Guess you like

Origin www.cnblogs.com/niugang0920/p/12197095.html