我正在尝试使用Spring 3.0(和maven)完成我的第一个项目.我在相当多的项目中一直使用Spring 2.5(和引物版本).不过我有点困惑,我必须在我的pom.xml中定义哪些模块作为依赖项.我只想使用核心容器函数(bean,core,context,el).
我习惯这样做:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
<version>2.5.6</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
但现在我有点困惑,因为3.0版本没有完整的弹簧模块.我尝试了以下但它没有用(有些类缺失).
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.0.0.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>
<version>3.0.0.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>3.0.0.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.0.0.RELEASE</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
任何帮助,将不胜感激!