nutzam / nutz

Nutz -- Web Framework(Mvc/Ioc/Aop/Dao/Json) for ALL Java developer
https://nutzam.com
Apache License 2.0
2.53k stars 942 forks source link

【建议】Record.getString,支持默认值 #1575

Closed lmm1990 closed 3 years ago

lmm1990 commented 3 years ago

如: public String getString(String name,String def) { String result = getString(name); if(result==null){ return def; } return result; }

threefish commented 3 years ago

Record record=new Record(); NutMap nutMap=new NutMap(record); nutMap.getString("xx", "默认值"); 看看文档和源码吧