Performance: Profile-based configuration
MEDIUM IMPACT
This affects application startup time and memory usage by loading only relevant configuration for the active profile.
Use application-{profile}.properties files and activate profile via spring.profiles.activeapplication.properties contains all environment configs mixed together without profiles
| Pattern | Config Files Loaded | Beans Initialized | Startup Time Impact | Verdict |
|---|---|---|---|---|
| Single config with all env settings | All configs loaded | All beans for all envs | High startup delay | [X] Bad |
| Profile-based config files | Only active profile configs | Only relevant beans | Reduced startup time | [OK] Good |