spring-framework / org.springframework.web.context.support / AnnotationConfigWebApplicationContext / scan

scan

open fun scan(vararg basePackages: String): Unit

Perform a scan within the specified base packages.

Note that #refresh() must be called in order for the context to fully process the new classes.

Parameters

basePackages - the packages to check for annotated classes

See Also
#loadBeanDefinitions(DefaultListableBeanFactory)#register(Class...)#setConfigLocation(String)#refresh()