Upgrade from Spring 2.0 to Spring 2.5
15/06/2010 § 2 Comments
I’ve been upgrading recently the webapp I’m working on the moment from Spring 2.0 to Spring 2.5 (in the process to upgrade to 3.0) to enjoy Spring Annotations power.
This task is pretty straightforward and requires to substitute jars from 2.0 version with 2.5 version. It’s enough to download Spring Framework from here.
Big gotcha : spring-webmvc.jar is not part of spring.jar any more so you need to include both the jars to use SpringMVC
Now you can start enjoying annotation!
Start changing your Spring configuration file (dispatcher-servlet.xml or whatever you configure in web.xml) with something like:
<?xml version="1.0" encoding="UTF-8"?;>
// Declare all Beans here
Ok, now you’re ready to use @Autowired, @Controller, @RequestMapping and so forth!