Introduction to Internationalization

Learn how to support multiple languages with Spring Boot and Thymeleaf.

The messages.properties file

By default, Spring Boot expects the properties file messages.properties to be at the root of the classpath. Thus it would be at src/main/resources in the default directory structure.

For each language the application supports, another file is added at the same location. It’s better to have all those translation files in their own directory.

Get hands-on with 1200+ tech skills courses.