Skip to main content

Popular posts from this blog

My Favorite Tech blogs/sites

Most of the time i was turnaround on these sites and which i would like share with you all :) For programming language: 1. http://www.smashingmagazine.com/ 2. http://www.osix.net/ 3. http://www.dzone.com/ 4. http://thedailywtf.com/ 5. http://www.w3.org/ 6. http://www.devx.com/ 7. http://themes.freshmeat.net/tags 8. http://cglreport.zhenhua.info/ 9. http://crunchify.com Programming / Technology / Perspectives: 1. http://googleblog.blogspot.com/ 2. http://www.ted.com/ 3. http://www.bharattalkies.com/ 4. http://www.nasa.gov/  ----> as a child i dreamt of being an astronomer, atleast i will do it in next birth :) 5. http://www.scribd.com/  -> To download free PDF files 6. http://icfun.blogspot.com/

ComponentScan

  Spring @ComponentScan Spring @ComponentScan is an interface and it is part of the package " org.springframework.context.annotation ". It will enable component scanning in the Spring application. Component scanning enables auto-detection of beans by Spring Container. Java classes decorated with stereotypes such as @Configuration , @Component , @Service , @Controller, and @Repository are auto-detected by Spring.  We can annotate component scan with or without arguments.  Either basePackageClasses() or basePackages() (or it's alias value()) may be specified to define the specific packages to scan.  @ComponentScan WITHOUT arguments tells Spring to scan the current package and all of its sub-packages. For example : import org.springframework.context.annotation. ComponentScan ; @ComponentScan public class MovieApplication { } @ComponentScan WITH arguments tells Spring to scan the package mentioned with an attribute basePackages. For example: import org.springframewor...