Using Spring-boot we can store config parameters for different environments in Profile specific properties file, however that makes config part of code which is what 12-factor principles doesn't recommend .
Rather, 12 -factor recommends storing config(here, config specifically means parameters whose value varies across different environments) in environment.
What are pros/cons of storing config in environment Vs profile-specific properties files ?