How to load any property files at compile time with spring?

I want to load any property files in spring POJO classes.

Actually, I want to use any properties from property file in @Size, @NotNull or any validation annotations in spring model classes.

But the issue is that @Size, @NotNull etc annotation are invoked at compile-time whereas any property file’s data are invoked at runtime.

Even, I want to use in the max parameter of @Size which accepts the only constant integer. How can I load value and cast it to Integer as a constant value?

And I can use custom validator or any custom annotation to solve the issue but as per the organization policy, I can’t use much customization.