Jul 11, 2024
spring-context
to pom.xml
@Component
: Marks classes as Spring-managed components.AnnotationConfigApplicationContext
specifying base packages.context.getBean(LoanService.class)
.ClassPathScanningCandidateComponentProvider
to find classes with @Component
annotation.@Component
annotated classes.