Hello! I’ve been trying to store environment variables inside a .properties file but for some reason, I am not able to read them using the @Value annotation. I’ve followed the suggestions here: How do we specify environment-specific (DEV, STAGING, PROD) properties in BloomReach? and also tried to add them to the property files at /conf (platform.properties and hst.properties), but nothing seems to work - trying to read a value with annotation @Value always returns null. Any idea what could I be doing wrong or any suggestions on what might be causing this issue?
You can’t use spring annotations for most of the CMS/Site classes. Only spring managed components will get processed, see: