Я наткнулся на две аннотации, предоставленные Spring 3(@Компонент и @Конфигурация)
Я немного запутался между ними.
Вот что я читал о @Component
Put this “context:component” in bean configuration file, it means, enable auto scanning feature in Spring. The base-package is indicate where are your components stored, Spring will scan this folder and find out the bean (annotated with @Component) and register it in Spring container.
Поэтому мне интересно, в чем польза @Configuration, если @Controller зарегистрирует мои bean-компоненты без необходимости объявлять их в XML-файле конфигурации spring