Monday, February 4, 2013

Spring 3 - Version 3.2.1 and NoUniqueBeandefinitionException

For those who are migrating from spring 3.1.x.RELEASE to the latest 3.2.1.RELEASE, I would like to signal a known bug.

The solution is however quite easy: just remove the version 3.2.1.RELEASE from your build.
<dependency>
 <groupId>org.springframework</groupId>
 <artifactId>spring-xxx</artifactId>
 <version>[3.0.0, 3.2.1.RELEASE),(3.2.1.RELEASE,4.0.0)</version>
</dependency>

This stole me a week of life... but... what do you want? That's the developer life.

Hope this can save some of your time,
Stefano

No comments:

Post a Comment