使用Arrays.asList数组转list的时候,添加add元素报错如下:
java.lang.UnsupportedOperationException: null
解决方法:
String[] removeTable={table,"sys_user","sys_data_dict","count(1)"};
List<String> list = new ArrayList(Arrays.asList(removeTable));list.add(name);
使用Arrays.asList数组转list的时候,添加add元素报错如下:
java.lang.UnsupportedOperationException: null
解决方法:
String[] removeTable={table,"sys_user","sys_data_dict","count(1)"};
List<String> list = new ArrayList(Arrays.asList(removeTable));list.add(name);
有建议,请留言!