I have a bean like follows
<bean name="requestDataValueProcessor" class="com.bom.DOMRequestDataValueProcessor"/>
DOMRequestDataValueProcessor implements the RequestDataValueProcessor.
I am doing my mvc configuration using the following class and not by xml configuration file.
@Configuration
@EnableWebMvc
public class WebConfig extends WebMvcConfigurerAdapter {
}
How can i add the above bean in the configuration ?
you should enable the components scanning. See Spring doc : http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/beans.html#beans-java