thymeleaf 工具对象使用
*********************
示例
*****************
controller 层
HelloController
@RestController
public class HelloController {
@RequestMapping("/hello")
public ModelAndView hello(ModelAndView mv){
List<Integer> list=new ArrayList<>();
for (int i=0;i<10;i++){
list.add(i);
}
Map<Integer,String> map=new HashMap<>();
for (int i=0;i<10;i++){
map.put(i,"瓜田李下 "+i);
}
mv.addObject("list",li