【发布时间】:2013-11-06 04:54:43
【问题描述】:
pom.xml中的依赖有什么意义?
我有以下顺序的依赖项:
- CGLIB
- Apache Commons
- 弹簧数据
- 休眠
- MySQL 连接器
- 春天
如果我在 Spring 之上插入 Spring Security 依赖项,任何地方都会出错。例如,如果我在最顶部插入两个依赖项,我会得到这个异常(也是运行前的编译器错误):
java.lang.NoClassDefFoundError: org/springframework/core/env/EnvironmentCapable
【问题讨论】:
-
分享你的pom,这样很难说。