I have class like this
public class Cat extends Animal{
public Cat() {
super(configValue)
}
}
I need to pass configValue from application.yaml but I can't add the @Value({config.value}) annotation to the Cat constructor because there is a code which I can't control which calls no arg constructor of the Cat and does new Cat()
How can I pass configValue to the Animal