I
I
IvanN7772022-03-02 13:56:51
Java
IvanN777, 2022-03-02 13:56:51

What is the difference between Jaxb nillable and required, is it not very clear in meaning?

Let's say there is an element in the circuit that may or may not be.
And I accept it

<user>
<car>1</car>
</user>
@XmlElement

Suppose not everyone has a car, or they simply forgot to send it. More like required = false, but there is also nillable, which confuses me

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question