Skip to content
Snippets Groups Projects

Restructure spring application properties

Merged Hutomo Saleh requested to merge chore/use-spring-config-import into dev

Previously, we load three different application-(prod/dev/local).properties with repeating configurations. With this MR, we use spring.config.import to load specific configuration that overwrites the default values.

By default, the application.properties is set to prod configuration, which is why prod.properties is empty. To change the profile, set the SPRING_PROFILE env to either dev or local.

Based on: https://docs.spring.io/spring-boot/reference/features/external-config.html#features.external-config.files.importing

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.