Home > Enterprise >  How to disable Intellij warning - Field injection is not recommended
How to disable Intellij warning - Field injection is not recommended

Time:12-25

How to disable the below warning (Field injection is not recommended)in Intellij idea settings?

enter image description here

Note:

Do not start advising prefer Constructor injection over field injection etc. This is Spring.

CodePudding user response:

  1. Open up IntelliJ preferences
  2. Go to editor
  3. Go to inspections
  4. Find non recommended 'field' injections
  5. Disable it
  • Related