gpt4 book ai didi

java - Spring 3.2.12 正在寻找 Spring 4.0 类吗?

转载 作者:行者123 更新时间:2023-12-01 22:35:31 25 4
gpt4 key购买 nike

我有一个应用程序当前可以使用 Spring 3.2.3 正确编译。我想要更新到最新版本(但还没有准备好升级到 4.x),我尝试升级到 3.2.12。当我这样做时,我从方面得到了一个奇怪的编译错误:

[INFO] --- aspectj-maven-plugin:1.3:compile (default) @ ebs-schema-jaxb-bindings ---
[ERROR] can't determine superclass of missing type org.springframework.cache.interceptor.CacheAspectSupport when batch building BuildConfig[null] #Files=3825 AopXmls=#0
[Xlint:cantFindType]
[ERROR] can't determine superclass of missing type org.springframework.aop.interceptor.AsyncExecutionAspectSupport when batch building BuildConfig[null] #Files=3825 AopXmls=#0
[Xlint:cantFindType]

我想我明白这个逻辑 here ,但是为什么 Spring 3.2.12 引用 Spring 4.x 接口(interface)呢?我怎样才能找到造成麻烦的子类?即使在当前根本没有任何切入点的项目中也会发生这种情况。

最佳答案

如果您使用 Maven,请尝试使用 dependency:tree 来查找哪个库导入了 Spring 4 库。

然后尝试使用排除标记在 maven 编译时从导入中排除此工件。您可能在库上存在冲突。

关于java - Spring 3.2.12 正在寻找 Spring 4.0 类吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26934799/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com