码迷,mamicode.com
首页 > 编程语言 > 详细

springmvc 中model中放入枚举类型

时间:2014-06-25 19:59:55      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:style   get   string   os      io   

我们直接看例子:

Map<String, String> mallMap = new HashMap<String, String>();

mallMap.put(MallStatus.SELFMALL.toString(),
MallStatus.SELFMALL.getValue());
mallMap.put(MallStatus.DELEGATIONMALL.toString(),
MallStatus.DELEGATIONMALL.getValue());
mallMap.put(MallStatus.STREET.toString(), MallStatus.STREET.getValue());
model.addAttribute("mallMap", mallMap);

springmvc 中model中放入枚举类型,布布扣,bubuko.com

springmvc 中model中放入枚举类型

标签:style   get   string   os      io   

原文地址:http://blog.csdn.net/baicp3/article/details/33707089

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!