1

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.

pannu
  • 518
  • 7
  • 20

1 Answers1

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