Which are valid ways to load external properties in Spring?
Using @PropertySource annotation
Using @Property annotation
Using @Value annotation
Using @Env annotation
✅ You can load external properties with @PropertySource .
✅ You can also load external properties with @Value .
❌ There is no such @Env annotation but usually, you load the environment with @Autowired:
❌ Property is not an annotation, it is a class used to handle beans properties:
#spring #certificationquestion #vcp