educative.io

Autowiring cannot be used for primitive data types like String and int. It can only be used for object references

  • Autowiring cannot be used for primitive data types like String and int. It can only be used for object references.

Here String is not a primitive data type. Please correct the document.