Spring3 Dependency Injection not working with mule

倾然丶 夕夏残阳落幕 提交于 2019-12-04 14:53:12

You are probably missing a couple of things:

  1. You should scan the packages where you want spring to look fo annotated classes. In your case you should add the following xml snippet to your mule config <context:component-scan base-package="com.proj.pos.webservice" />
  2. You should declare your component as a spring object and not as a component, so you should replace <component class="com.proj.pos.webservice.implementation.CustomerServiceImpl" doc:name="Java" /> with <component><spring-object bean="customerService"/></component>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!