79336778

Date: 2025-01-07 17:05:44
Score: 0.5
Natty:
Report link

Yes check below reference article for reference. You don't need to import packages spring boot does it for us automatically.

https://docs.spring.io/spring-boot/docs/2.0.x/reference/html/using-boot-using-springbootapplication-annotation.html

Many Spring Boot developers like their apps to use auto-configuration, component scan and be able to define extra configuration on their "application class". A single @SpringBootApplication annotation can be used to enable those three features, that is:

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Component
  • Low reputation (0.5):
Posted by: Sam....