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

SpringBoot Profile not set when deployed as war #9226

Closed
timaebi opened this issue Sep 6, 2015 · 0 comments
Closed

SpringBoot Profile not set when deployed as war #9226

timaebi opened this issue Sep 6, 2015 · 0 comments
Assignees
Milestone

Comments

@timaebi
Copy link

timaebi commented Sep 6, 2015

I want to use one config file per environment as described in the SpringBoot doc. This works as long as the application is run with the embedded Tomcat. As soon as I deploy the application using a war file, it doesn't look at the profile specific config files. (This can be seen by setting the log level of org.springframework.boot to DEBUG)
The application is initialized using a generated class wich inherits from SpringBootServletInitializer. Unfortunately this doesn't set the Profile as it is done in GrailsApp.configureEnvironment method.

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

No branches or pull requests

2 participants