79501222

Date: 2025-03-11 15:10:28
Score: 4
Natty:
Report link

Autoconfiguration classes should not enable Component Scanning, as stated in the official Spring documentation.

See https://docs.spring.io/spring-boot/reference/features/developing-auto-configuration.html#features.developing-auto-configuration Note in paragraph “Location Auto-configuration Candidates”. The correct way should make use of @Import

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @Import
  • Low reputation (1):
Posted by: Marco Cinus