- 
                Notifications
    
You must be signed in to change notification settings  - Fork 41.6k
 
Closed
Labels
theme: config-dataIssues related to the configuration themeIssues related to the configuration themetype: enhancementA general enhancementA general enhancement
Milestone
Description
Currently environment variables get bound to @Configuration properties directly (for example SERVER_PORT to Server.port). This can cause problems when trying to set ignoreInvalidFields or if you want to run two different boot apps as the same user.
@gregturn suggested that we consider supporting a prefix when binding. For example:
springApplication.setEnvironmentPrefix("MYAPP_");
...
Which would then bind MYAPP_SERVER_PORT rather than SERVER_PORT.
Metadata
Metadata
Assignees
Labels
theme: config-dataIssues related to the configuration themeIssues related to the configuration themetype: enhancementA general enhancementA general enhancement