[英]How to work with a dependency that is built on Spring boot into typical spring application?
We have built a jar say ABC around Activiti with spring boot dependencies and packed as a dependency. 我们在Activiti周围建立了一个罐子,说ABC,带有Spring Boot依赖项,并打包为依赖项。 The dependencies that are added are as follows on the jar we built.
添加的依赖项在我们构建的jar上如下所示。
When I inject this jar ABC as a dependency in to a typical spring application I run into multiple issues. 当我将这个jar ABC作为依赖项注入到典型的spring应用程序中时,我遇到了多个问题。 Is there a way that I can use this jar in typical spring application (with XML based configuration)?
有没有一种方法可以在典型的Spring应用程序(基于XML的配置)中使用此jar?
You can inject Spring boot dependenc in two ways: 您可以通过两种方式注入Spring BootDependenc:
<dependencyManagement>
tag (explained here ) <dependencyManagement>
标记将其指定为另一个依赖项( 在此处说明) Once done, you can use Spring boot's classed into your application. 完成后,您可以使用Spring Boot的分类到您的应用程序中。
When I inject this dependency in to a typical spring application I run into multiple issues
当我将这种依赖关系注入典型的spring应用程序时,我遇到了多个问题
Are these issues ClassNotFound
and MethodNotFound
exceptions? 这些问题是
ClassNotFound
和MethodNotFound
异常吗? If yes then you might have conflicts in different dependency versions. 如果是,那么您在不同的依赖项版本中可能会有冲突。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.