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;}