{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3450","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3450/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3450/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3450/events","html_url":"https://github.com/spring-projects/spring-boot/issues/3450","id":93893256,"number":3450,"title":"Add prefix support for environment varaibles","user":{"login":"philwebb","id":519772,"avatar_url":"https://avatars.githubusercontent.com/u/519772?v=3","gravatar_id":"","url":"https://api.github.com/users/philwebb","html_url":"https://github.com/philwebb","followers_url":"https://api.github.com/users/philwebb/followers","following_url":"https://api.github.com/users/philwebb/following{/other_user}","gists_url":"https://api.github.com/users/philwebb/gists{/gist_id}","starred_url":"https://api.github.com/users/philwebb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwebb/subscriptions","organizations_url":"https://api.github.com/users/philwebb/orgs","repos_url":"https://api.github.com/users/philwebb/repos","events_url":"https://api.github.com/users/philwebb/events{/privacy}","received_events_url":"https://api.github.com/users/philwebb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spring-projects/spring-boot/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-08T21:22:02Z","updated_at":"2015-07-13T03:49:55Z","closed_at":null,"body":"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.\r\n\r\n@gregturn suggested that we consider supporting a prefix when binding. For example:\r\n\r\n```\r\nspringApplication.setEnvironmentPrefix(\"MYAPP_\");\r\n...\r\n```\r\nWhich would then bind `MYAPP_SERVER_PORT` rather than `SERVER_PORT`.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/120803430","html_url":"https://github.com/spring-projects/spring-boot/issues/3450#issuecomment-120803430","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/3450","id":120803430,"user":{"login":"lucassaldanha","id":1766440,"avatar_url":"https://avatars.githubusercontent.com/u/1766440?v=3","gravatar_id":"","url":"https://api.github.com/users/lucassaldanha","html_url":"https://github.com/lucassaldanha","followers_url":"https://api.github.com/users/lucassaldanha/followers","following_url":"https://api.github.com/users/lucassaldanha/following{/other_user}","gists_url":"https://api.github.com/users/lucassaldanha/gists{/gist_id}","starred_url":"https://api.github.com/users/lucassaldanha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucassaldanha/subscriptions","organizations_url":"https://api.github.com/users/lucassaldanha/orgs","repos_url":"https://api.github.com/users/lucassaldanha/repos","events_url":"https://api.github.com/users/lucassaldanha/events{/privacy}","received_events_url":"https://api.github.com/users/lucassaldanha/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T03:49:55Z","updated_at":"2015-07-13T03:49:55Z","body":"+1 for this feature!"}}