I have large project that downloads its configuration from an external source. and the refers to them with @value annotation with their specified name. My question can I some how print all these external configurations is it possible.
Asked
Active
Viewed 80 times
1 Answers
2
If you inject org.springframework.core.env.Environment you can get all the defined configuration properties. Check out Spring: access all Environment properties as a Map or Properties object for additional info.

Strelok
- 50,229
- 9
- 102
- 115
-
I have done that but still there are some @value parameters whose key are not present in that map but they are getting values which are not defined any where in the project. I am pretty new to spring so pardon me if am wrong about the terminology. – pannu Jun 02 '17 at 07:54