Configure with @ComponentScan

Remove packages in AnnotationConfigApplicationContext and add to
AppContext with @ComponentScan annotation