I am trying to access a value from application.properties
in RestControllerAdvice
file. The value is not getting read as the advice bean loads first i guess. Is there any way to bring in the value from application.properties
file into advice file.
@Value
annotation reads null
from application.properties
in advice controller.