2016-08-15 77 views

回答

0

最初的项目已经有一个answer你的问题。

但是,如果您正在使用maven或gradle(依赖管理工具),则您需要在您提供的站点上使用Spring Framework的片段。只需添加这些到您的依赖关系:

MAVEN:

<dependencies> 
    <dependency> 
     <groupId>org.springframework</groupId> 
     <artifactId>spring-context</artifactId> 
     <version>4.3.2.RELEASE</version> 
    </dependency> 
</dependencies> 

摇篮

dependencies { 
    compile 'org.springframework:spring-context:4.3.2.RELEASE' 
}