adspace


Can you inject null and empty string values in spring?

Answer Posted / Brijpal Singh

"Yes, Spring allows the injection of null and empty string values. However, it's generally recommended to avoid injecting null values as they can lead to NullPointerExceptions."

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is lazy class?

490


What is difference between @controller and @restcontroller in spring?

556


How can you inject java collection in spring?

518