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

register

open fun register(vararg annotatedClasses: Class<*>): Unit

Register one or more annotated classes to be processed.

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

Parameters

annotatedClasses - one or more annotated classes, e.g. org.springframework.context.annotation.Configuration classes

See Also
#scan(String...)#loadBeanDefinitions(DefaultListableBeanFactory)#setConfigLocation(String)#refresh()