You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, a call to /env/my.* throws an exception complaining about ${my.bar} being unresolvable.
This behaviour is annoying when the environment contains some properties that are not used in a given setup (think about feature.enabled=false with an incomplete configuration set for the feature feature).
Note: tested with SpringBoot 1.3.8.RELEASE and 1.4.4.RELEASE
The text was updated successfully, but these errors were encountered:
Yes it will - but it will then be applicable to the entire Environment - which may not be desired.
I tried to modify the EnvironmentMvcEndpoint to make use of such property resolver instead of delegating to the Environment for property resolution. But I'm not sure it is the way to go...
mbhave
added a commit
to mbhave/spring-boot
that referenced
this issue
Mar 7, 2017
Uh oh!
There was an error while loading. Please reload this page.
The
EnvironmentMvcEndpoint
throws an exception for unresolvable properties instead of printing their unresolved value.Suppose the following
application.properties
:A call to the endpoint
/env
shows theapplicationConfig
entry with the properties unresolved:However, a call to
/env/my.*
throws an exception complaining about${my.bar}
being unresolvable.This behaviour is annoying when the environment contains some properties that are not used in a given setup (think about
feature.enabled=false
with an incomplete configuration set for the feature feature).Note: tested with SpringBoot
1.3.8.RELEASE
and1.4.4.RELEASE
The text was updated successfully, but these errors were encountered: