[英]Do I need a blueprint.xml when using Springs OSGI Dynamic Modules?
I have a spring-context.xml and a blueprint.xml. 我有一个spring-context.xml和blueprint.xml。 In the blueprint.xml I am creating a bean that is getting wired into a class in a different project. 在blueprint.xml中,我正在创建一个将要连接到另一个项目中的类中的bean。
Well, I started using Springs dynamic modules for OSGI to load in a configuration file from the OSGI container (which is working) but now I noticed I'm getting an Error creating the bean that is defined in the blueprint.xml 好吧,我开始使用OSGI的Springs动态模块从OSGI容器中加载配置文件(正在运行),但是现在我发现创建blueprint.xml中定义的Bean时出错
Do I not need the blueprint anymore if I'm defining OSGI properting in my spring context file? 如果我在spring上下文文件中定义OSGI属性,是否不再需要该蓝图?
In the blueprint, I have this 在蓝图中,我有这个
How would I use the OSGI Dynamic modules to mimic that? 我将如何使用OSGI动态模块来模仿它?
You should either use spring dm or blueprint not both at the same time. 您不应同时使用spring dm或blueprint。 I recommend to use rather blueprint than spring dm as the later has a lot of issues with classloading and is not maintained anymore. 我建议使用蓝图而不是spring dm,因为后者在类加载方面存在很多问题,并且不再维护。
Is there any special reason why you move from blueprint to spring dm and not the other way around? 从蓝图迁移到Spring dm,而不是从其他方面转向,有什么特殊的原因吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.