@Override
            public boolean call(String name, String key, String value) {
                String mapKey = key.substring(name.length() + 1);
                if (mapKey.startsWith("[") && mapKey.endsWith("]")) {
                    mapKey = mapKey.substring(1, mapKey.length() - 1);
                }
                if (vClass == Class.class) {
                    try {
                        Class clazz = Class.forName(value);
                        map.put(mapKey, clazz);
                    } catch (ClassNotFoundException e) {
                        throw new PropertiesConfigurationResolveException(e);
                    }
                } else if (PrimitiveTypeUtils.isPrimitiveClass(vClass)) {
                    map.put(mapKey, PrimitiveTypeUtils.convert(value, vClass));
                } else {
                    map.put(mapKey, JSON.parse(value, vClass));
                }
                return true;
            }
@author Robert HG (254963746@qq.com) on 4/20/16.
lts-core/src/main/java/com/github/ltsopensource/autoconfigure/resolver/MapResolver.java