IntelliJ IDEA debug 调试时查看所有断点

快捷键 ctrl+shift+f8 打开断点窗口 也可以在 idea 的调试界面点左下角的双球图标进入断点展示界面,在该界面可以取消断点或点“-”号删除断点。按钮图示如下:

IntelliJ IDEA debug 调试时查看所有断点

map 转指定类型实体类 map

用于转换成符合实体类属性的 mappublic Map<String, Object> convertMapToBeanMap(Map<String, Object> params, Class clazz) throws IntrospectionException {    Map<String, Object> finalMap = new HashMap<>();    BeanInfo beanInfo = Introspector.getBeanInfo(clazz);    PropertyDescriptor[] propertyDescriptors = beanInfo.getPropertyDescriptors();    for (int i = 0; i < propertyDescriptors.length; i++) {        PropertyDescriptor descriptor = propertyDescriptors[i];        String propertyName = descriptor.getName();        if (!propertyName.equals("class")) {            if (params.containsKey(propertyName)) {                finalMap.put(propertyName, params.get(propertyName));            }        }    }    return finalMap;}