-
Notifications
You must be signed in to change notification settings - Fork 40.5k
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
Allow SpEL in application.properties #1672
Comments
You don't need SpEL for that:
would work. I don't think SpEL is such a good idea in properties files (it's not clear what the root context would be). |
dsyer
added
the
status: waiting-for-feedback
We need additional information before we can continue
label
Oct 9, 2014
Thanks for your reply. After some digging I found that the real issue is with the special Sorry for opening this issue |
dsyer
removed
the
status: waiting-for-feedback
We need additional information before we can continue
label
Oct 9, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A bit of context: I'm trying to externalize the paths of my application (log, database, ...), and put everything in a directory
APP_HOME
. This directory should default to~/myapp
, and should be possible for users to override with a command line switch--home=/usr/local/myapp
. At first I tried with:but it doesn't resolve to the user home directory (at least on my Windows 7), so I tried with:
but it isn't interpreted as a SpEL snippet and is left as-is. I think I have to do the wiring inside my Java configuration, but wonder if it's possible to change the system
The text was updated successfully, but these errors were encountered: