spring+dubbo遇到的一个坑:Injection of resource dependencies failed; nested exception is org.springfra

如题:问题原因是spring自动注入失败:

spring+dubbo遇到的一个坑:Injection of resource dependencies failed; nested exception is org.springfra
spring+dubbo遇到的一个坑:Injection of resource dependencies failed; nested exception is org.springfra
如图:我把dubbo和spring的配置分开了,web.xml配置的时候想着用就可以直接全部加载容器里面了,但是启动容器会发现,一直报Injection of resource dependencies failed; nested exception is org.springfra
检查了好几遍,该配置的都写了,Service层的实现类也打的是springde 注解:@org.springframework.stereotype.Service。都没有问题,最后用spring的测试类,调试,发现容器启动的时候用
时,容器先加载的是applicationContext-dubbo.xml文件,这样就会注入不了service,
**

解决办法

让容器先加载applicationContext-spring.xml的配置文件
spring+dubbo遇到的一个坑:Injection of resource dependencies failed; nested exception is org.springfra
spring+dubbo遇到的一个坑:Injection of resource dependencies failed; nested exception is org.springfra