首页 > 其他分享 >MapUtil简单使用

MapUtil简单使用

时间:2023-01-11 14:35:03浏览次数:42  
标签:11 MapUtil 30 简单 hutool 使用 Pair

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

相关文章