Pages

Affichage des articles dont le libellé est How To Inject Null Value In Spring. Afficher tous les articles
Affichage des articles dont le libellé est How To Inject Null Value In Spring. Afficher tous les articles

jeudi 23 mai 2013

How To Inject Null Value In Spring

In Spring, you can uses this special <null /> tag to pass a “null” value into constructor argument or property.

1. Constructor Argument

The wrong way to inject a null into constructor argument, a really common mistake, and nice try :)