Which maven dependencies to include for spring 3.0?

前端 未结 8 541
太阳男子
太阳男子 2020-11-29 14:55

I am trying to do my first project with Spring 3.0 (and maven). I have been using Spring 2.5 (and primer versions) in quite some projects. Nevertheless I am kinda confused,

8条回答
  •  隐瞒了意图╮
    2020-11-29 15:01

    Spring (nowadays) makes it easy to add Spring to a project by using just one dependency, e.g.

    
     org.springframework
     spring-context
     3.1.2.RELEASE
     
    

    This will resolve to

    [INFO] The following files have been resolved:
    [INFO]    aopalliance:aopalliance:jar:1.0:compile
    [INFO]    commons-logging:commons-logging:jar:1.1.1:compile
    [INFO]    org.springframework:spring-aop:jar:3.1.2.RELEASE:compile
    [INFO]    org.springframework:spring-asm:jar:3.1.2.RELEASE:compile
    [INFO]    org.springframework:spring-beans:jar:3.1.2.RELEASE:compile
    [INFO]    org.springframework:spring-context:jar:3.1.2.RELEASE:compile
    [INFO]    org.springframework:spring-core:jar:3.1.2.RELEASE:compile
    [INFO]    org.springframework:spring-expression:jar:3.1.2.RELEASE:compile
    

    Have a look at the Spring Framework documentation page for more information.

提交回复
热议问题