Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
6905edc6
Commit
6905edc6
authored
Feb 12, 2019
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.1.x'
parents
5967a3b8
04aacdb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
spring-boot-features.adoc
...ing-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+29
-0
No files found.
spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
6905edc6
...
...
@@ -2006,6 +2006,35 @@ However, properties can be added to the `Environment` by using the relaxed rules
[[boot-features-internationalization]]
== Internationalization
Spring Boot supports localized messages so that your application can cater to users
of different language preferences. By default, Spring Boot looks for the presence of
a `messages` resource bundle at the root of the classpath.
NOTE: The auto-configuration applies when the default properties file for the configured
resource bundle is available (i.e. `messages.properties` by default). If your resource
bundle contains only language-specific properties files, you are required to add the
default.
The basename of the resource bundle as well as several other attributes can be configured
using the `spring.messages` namespace, as shown in the following example:
[source,properties,indent=0]
----
spring.messages.basename=messages,config.i18n.messages
spring.messages.fallback-to-system-locale=false
----
TIP: `spring.messages.basename` supports comma-separated list of locations, either a
package qualifier or a resource resolved from the classpath root.
See {sc-spring-boot-autoconfigure}/context/MessageSourceProperties.{sc-ext}[
`MessageSourceProperties`] for more supported options.
[[boot-features-json]]
== JSON
Spring Boot provides integration with three JSON mapping libraries:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment