inversion of control - Wicket and spring how to configure such that it does not look for applicationContext -
i using wicket 6.19 , spring 4.0.3
i have configured spring such not need applicationcontext.xml.
i have added appropriate listener web.xml upon deploying spring-wicket application have been shot down message saying cannot find applicationcontext.xml
a bit of searching turned following: annotationconfigwebapplicationcontext
so need tell application application based configuration , class takes care of this. got idea how configure within wicket-spring environment ?
in ? extends webapplication class in init have:
getcomponentinstantiationlisteners().add(new springcomponentinjector(this)); my web.xml
<listener> <listener-class> org.springframework.web.context.contextloadlistener </listener-class> </listener> nothing else seems relevant issue fact keeps trying find applicationcontext.xml despite spring configuration being exclusively handled annotations.
do use @configuration based config?
if yes take @ wicket 7.x wicket-examples:
Comments
Post a Comment