{"action":"closed","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/1219","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/1219/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/1219/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/1219/events","html_url":"https://github.com/spring-projects/spring-boot/issues/1219","id":37361815,"number":1219,"title":"spring.profiles.default doesn't load profile-specific properties file","user":{"login":"kryger","id":1566028,"avatar_url":"https://avatars.githubusercontent.com/u/1566028?v=3","gravatar_id":"","url":"https://api.github.com/users/kryger","html_url":"https://github.com/kryger","followers_url":"https://api.github.com/users/kryger/followers","following_url":"https://api.github.com/users/kryger/following{/other_user}","gists_url":"https://api.github.com/users/kryger/gists{/gist_id}","starred_url":"https://api.github.com/users/kryger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kryger/subscriptions","organizations_url":"https://api.github.com/users/kryger/orgs","repos_url":"https://api.github.com/users/kryger/repos","events_url":"https://api.github.com/users/kryger/events{/privacy}","received_events_url":"https://api.github.com/users/kryger/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":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/spring-projects/spring-boot/milestones/39","html_url":"https://github.com/spring-projects/spring-boot/milestones/1.3.0.M2","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/milestones/39/labels","id":1140705,"number":39,"title":"1.3.0.M2","description":"","creator":{"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},"open_issues":42,"closed_issues":98,"state":"open","created_at":"2015-05-29T20:53:09Z","updated_at":"2015-07-03T14:12:10Z","due_on":"2015-07-06T07:00:00Z","closed_at":null},"comments":7,"created_at":"2014-07-08T11:41:07Z","updated_at":"2015-07-03T14:12:10Z","closed_at":"2015-07-03T14:12:10Z","body":"Repro repo: https://github.com/kryger/spring-boot-problem-profiles (plain web app generated from http://start.spring.io with some extra logging)\r\n\r\n\r\n**src/main/resources/application.properties** defines the defaults:\r\n\r\n```\r\nserver.port=11111\r\nspring.profiles.default=production\r\n```\r\n\r\n**application-production.properties** overrides the port:\r\n\r\n```\r\nserver.port=22222\r\n```\r\n\r\n----------\r\n\r\n\r\n**Steps to reproduce:**\r\n\r\n* check out https://github.com/kryger/spring-boot-problem-profiles\r\n\r\n* run with profile specified explicitly: `mvn spring-boot:run -Drun.jvmArguments=\"-Dspring.profiles.active=production\"`\r\n\r\n```\r\nActive: [production]\r\nDefault: [production]\r\nProduction profile ON\r\n(...)\r\nTomcat started on port(s): 22222/http\r\n```\r\nThat's what I expect, but since I defined `production` profile to be default if none other specified, I should be able to skip this flag? Let's...\r\n\r\n* ...do `mvn spring-boot:run` on CLI, output is:\r\n\r\n````\r\nActive: []\r\nDefault: [production]\r\nProduction profile ON\r\n(...)\r\nTomcat started on port(s): 11111/http\r\n````\r\n\r\nResult: `production` profile enabled but port specified in `application-production.properties` is ignored. This seems to suggest that [profile-specific properties][1] are not loaded and evaluated if they're included as a result of defaults? Unless my understanding of what \"default\" means this looks like a bug, doesn't it?\r\n\r\n*(note that moving `application-production.properties` to `src/main/resources` makes no difference)*\r\n\r\n[1]: http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-external-config-profile-specific-properties"}}