spring - How to add implemetation of RequestDataValueProcessor using code and not as xml configuration -
i have bean follows
<bean name="requestdatavalueprocessor" class="com.bom.domrequestdatavalueprocessor"/>
domrequestdatavalueprocessor implements requestdatavalueprocessor.
i doing mvc configuration using next class , not xml configuration file.
@configuration @enablewebmvc public class webconfig extends webmvcconfigureradapter { }
how can add together above bean in configuration ?
you should enable components scanning. see spring doc : http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/beans.html#beans-java
<beans> <context:component-scan base-package="com.acme"/> </beans>
spring model-view-controller spring-security
No comments:
Post a Comment