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 list of basenames
spring.messages.basename=messages
# Cache expiration for resource bundles, in sec. -1 will cache for ever
spring.messages.cache-seconds=-1
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset