- Autowiring cannot be used for primitive data types like
String
andint
. It can only be used for object references.
Here String is not a primitive data type. Please correct the document.
String
and int
. It can only be used for object references.Here String is not a primitive data type. Please correct the document.