Migrating from Spring 3 to Spring 2, what do you need to remember?

I was told that I need to develop a Spring 2 application (I don’t know why they do not want to use a Spring 3 application, since they use Java 5). The problem is that all my experience is related to Spring 3.

I know there is a reference guide, but I find it much easier if you move forward rather than backward.

So I was wondering what are the main differences between the two. I expect that in xmls you will work more with settings.

In Spring 3, I mostly use binding @RequestMapping, @ModelMapping, path to jsp, automatic type conversion from String to date, hibernate-validator, ...

Any pointers would be appreciated.

+3
source share
2 answers

-, Spring 2, , ? Spring 3. , , Spring 3.

, , Spring 2.5.6 ( MVC, ), Hibernate Validator. , .

Spring 3 , .

+2

, REST Spring 3.0. ,

//Spring 3.0
@RequestMapping("/customer/{id}/logoContent")
public void getCustomer(@PathVariable("id") final Customer customer) {...}

, Spring 2.5 Spring 3.0, Spring . , Spring 3.0 ( 2009 - 2010 ). - , , 2.5.

, Spring 2 Spring 3 Xml (Spring 2) (Spring 3).

BTW: , / Spring 2!

0

Source: https://habr.com/ru/post/1783074/


All Articles