A
A
antonpushkar2018-09-23 20:09:39
Java
antonpushkar, 2018-09-23 20:09:39

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

1 answer(s)
S
Sergey Gornostaev, 2018-09-23
@antonpushkar

Each deprecated label has a description that can be seen in the documentation or when compiled with the flag . -Xlint:deprecationSpecifically 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 question

Ask a Question

731 491 924 answers to any question