【问题标题】:Why does Spring Aspects depend on Spring ORM?为什么 Spring Aspects 依赖于 Spring ORM?
【发布时间】:2020-05-29 10:46:03
【问题描述】:

我有一个依赖于org.springframework:spring-aspects 的项目,它曾经在某些 Spring 4.x 版本上运行良好。现在我已经更新到一些 Spring 5.x 版本并且应用程序拒绝以 org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'persistenceUnit' available 开头 事实证明,这可以通过排除新添加的对 org.springframework:spring-orm 的依赖关系来解决。这是解决此问题的预期方法吗?

【问题讨论】:

    标签: spring maven dependencies


    【解决方案1】:

    我们遇到了同样的事情。似乎这是一个已经在 Spring 5.2.4 中修复的错误(在 Feb 25th, 2020 上发布) - 请参阅 Spring Framework 问题 #24491

    因此,在您可以使用此版本之前,似乎正确的做法是像您所做的那样排除 spring-orm

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-08-28
      • 1970-01-01
      • 2012-07-07
      • 2012-04-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-04
      相关资源
      最近更新 更多