Package sk.antons.sbutils.util
Class EnvPrinter
java.lang.Object
sk.antons.sbutils.util.EnvPrinter
Prints spring environment.
First collect all property names defined by sources which are explicitlu configured in files.
Define which of them are secured (secureSourcePredicate or securePropertyPredicate)
secureSourcePredicate is by default sourceName.contains("/secrets")
securePropertyPredicate is by default propName.endsWith(".password") or propName.endsWith(".key")
- Author:
- antons
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EnvPrinterinstamce(org.springframework.core.env.Environment env) print()Prints info for all collected property namesPrints info source by source.securePropertyPredicate(Predicate<String> value) secureSourcePredicate(Predicate<String> value)
-
Constructor Details
-
EnvPrinter
public EnvPrinter(org.springframework.core.env.Environment env)
-
-
Method Details
-
instamce
-
secureSourcePredicate
-
secureSourcePredicate
-
securePropertyPredicate
-
securePropertyPredicate
-
printBySources
Prints info source by source.- Returns:
- info
-
print
Prints info for all collected property names- Returns:
- info
-