springmvc way return data

How controller mode return data, as well as the front end to accept this data

There are five ways of such a transfer ( refer links )

1. Direct deposit using Model

model inside the set.

El {} $ using expression data obtained

2. Use modelAndView store

In fact, the essence of which is still used in the first model.

3. Use hashMap storage,

 

4. Use store session

 

5. Use store request

Guess you like

Origin www.cnblogs.com/yidiandianwy/p/11869994.html