I have a utility class with a bunch of static methods for updating certificates in the truststore. Within the static method I need to know the name of the current active profile. Since it’s static I can’t pass the value from @Value("${spring.profiles.active:}")
. Is there a better way to do this?
Project is in Java 11 and Springboot 2.7.