Which maven dependencies to include for spring 3.0?

前端 未结 8 536
太阳男子
太阳男子 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:18

    What classes are missing? The class name itself should be a good clue to the missing module.

    FYI, I know its really convenient to include the uber spring jar but this really causes issues when integrating with other projects. One of the benefits behind the dependency system is that it will resolve version conflicts among the dependencies.

    If my library depends on spring-core:2.5 and you depend on my library and uber-spring:3.0, you now have 2 versions of spring on your classpath.

    You can get around this with exclusions but its much easier to list the dependencies correctly and not have to worry about it.

提交回复
热议问题