Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System Property not working #1

Open
HimalayFei opened this issue Mar 6, 2015 · 1 comment
Open

System Property not working #1

HimalayFei opened this issue Mar 6, 2015 · 1 comment

Comments

@HimalayFei
Copy link

Thank you for the sample app.

  1. It would be nice if you add how to run your application, I was able to run using "mvn spring-boot:run"
  2. I created a folder and added to the classpath. In that folder I have put the same application.yml and ran this command "mvn spring-boot:run -Dspring.profiles.active=unit-test" but it still picking up the "default" active profile from the source code application.yml. I also tried creating a application.properties instead of application.yml but it still didnt get picked up?
@hoserdude
Copy link
Owner

I was able to run both java -Dspring.profiles.active=unit-test -jar target/spring-boot-sample-yaml-config-1.0.0.jar and mvn spring-boot:run -Dspring.profiles.active=unit-test from the command line. I just updated the Spring Boot version to 1.2.0, try it now and let me know if that works for you or not. The unit test profile was picked up by both (and no Doge was shown :( ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants