How to inject/retrieve an environment variable inside a static method
I’m using Spring Boot. I have a “Service” class with no constructor that has only static methods and uses ThreadLocal to store some values and return those values when requested.
I’m using Spring Boot. I have a “Service” class with no constructor that has only static methods and uses ThreadLocal to store some values and return those values when requested.