java - spring difference between value and ref -


https://www.tutorialspoint.com/spring/constructor_based_dependency_injection.htm

my question in last sentence of tutorial.

 final note, in case passing reference object,   need use ref attribute of <constructor-arg> tag ,   if passing value directly should use value      attribute shown above. 

i little bit confused reference of object , value.

can primary types value, java class , beans references?

what else might used reference here?

thank much

a reference points spring bean.

a value true value being inputted. e.g. "foo" or "1"


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -