Answer the question
In order to leave comments, you need to log in
What replaced the @Required annotation in Spring 5?
A question. In Spring 5, the @Required annotation was marked as deprecated. What was it replaced in the 5th spring?
Answer the question
In order to leave comments, you need to log in
Each deprecated label has a description that can be seen in the documentation or when compiled with the flag . -Xlint:deprecation
Specifically for the annotation @Required
, this description reads:
Deprecated as of 5.1, in favor of using constructor injection for required settings
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question