# Spring's properties misconfiguration dangers

DevFeed: [Spring's properties misconfiguration dangers](<https://devfeed.tech/articles/spring-s-properties-misconfiguration-dangers-27304.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201904/spring-properties-misconfiguration/>)

Published: 2019-04-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [configuration](<https://devfeed.tech/topics/configuration.md>), [Development](<https://devfeed.tech/topics/development.md>)

Tags: [configuration](<https://devfeed.tech/tags/configuration.md>), [production](<https://devfeed.tech/tags/production.md>), [tests](<https://devfeed.tech/tags/tests.md>)

## AI overview

This article explains how missing Spring configuration keys can cause an application to fall back to default values, potentially connecting to the wrong service and displaying invalid data. It recommends avoiding default property values, configuring each environment with a dedicated profile, and writing tests to verify configuration keys across environments.

## Source excerpt

Some time ago I've faced a very interesting support issue. Long story short it turned out that one of our applications was not connecting to proper service and as a result, it's been displaying invalid data to users. After a bit of investigation, I've noticed that spring's configuration mechanism did fallback to default value because of missing configuration key for the production profile. In this post, I'm going to present to you how we are going to avoid similar issues in the future. Read more