具体代码https://gitee.com/manshiguang/spring-boot.git
key值不同,但对应的value值已经被修改为最后一个查询的值了
serviceImpl层private Map map = new HashMap<>();