use packageName isntead of com.mycompany for componentScan in configuration