We can scan any of the folders by adding the path of that package or file in the main class; that is our SpringBootApplication class.
@ComponentScan(
"com.comapny.integration.aspect",
"com.comapny.integration.dao",
"com.accrualify.integration.service",
"com.comapny.integration.job",
"com.comapny.system.netsuite",
"com.comapny.main",
"com.comapny.system.intacct",
"com.comapny.system.qbo",
"com.comapny.system.xero")