1 maven
<dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.8.11</version> </dependency>
2 简单拼接
public Map<Object, Object> map = MapUtil.of( Pair.of("name", "John Smith"), Pair.of("age", "30"), Pair.of("gender", "male"));
标签:11,MapUtil,30,简单,hutool,使用,Pair From: https://www.cnblogs.com/chengxin1982/p/17043636.html