Other configuration options

Some other things that can be configured through application.properties are as follows:

  • Profiles
  • HTTP ;message converters (Jackson/JSON)
  • Transaction management
  • Internationalization

The following examples show some of the configuration options:

# Comma-separated list (or list if using YAML) of active profiles. spring.profiles.active=# HTTP message conversion. jackson or gson spring.http.converters.preferred-json-mapper=jackson# JACKSON Date format string. Example `yyyy-MM-dd HH:mm:ss`. spring.jackson.date-format=# Default transaction timeout in seconds. spring.transaction.default-timeout=# Perform the rollback on commit failures. spring.transaction.rollback-on-commit-failure=# Internationalisation : Comma-separated ...

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.