I have a class A with a date field annotated with @Value to take as default value the current date.
When I create a bean in an XML file, this field appears to be initialized with the current date, as expected.
When I create a new object with new A() in main of a test class, the field is null.
My question is how does @Value work. In the documentation, it said it gives a default value to a field, but does it work only for beans? How is it processed?