摘要: springboot项目,上传文件,报错:the temporary upload location [/tmp/tomcat.4519862041770988807.8082/work/Tomcat/localhost/ROOT] is not valid 原因:springboot上传文件,或默 阅读全文
posted @ 2020-08-14 17:01 Dream's 阅读(949) 评论(0) 推荐(0) 编辑
摘要: 数组转换遇到异常:java.lang.UnsupportedOperationException 代码: String[] otherUserFromArray = new String[]{"a","b","c"}; List<String> userFromList = Arrays.asLis 阅读全文
posted @ 2020-08-14 16:36 Dream's 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 判断两个数组里是否有相同的数据,用到了containsAll,后来发现,及时有相同的,也返回false。 经排查,原来是A.containsAll(B),A必须完全包含B才会返回true,即A>=B。 源码: 源码里遍历,只要有一个不存在的,立马会返回false。 阅读全文
posted @ 2020-08-14 15:48 Dream's 阅读(576) 评论(0) 推荐(0) 编辑
摘要: group_concat函数默认长度1024,超过会自动截取。 解决: 修改group_concat限制长度。 1.数据库直接通过sql修改 查询限制长度 show variables like 'group_concat_max_len'; 修改当前会话的长度限制 SET SESSION grou 阅读全文
posted @ 2020-08-14 15:09 Dream's 阅读(1916) 评论(0) 推荐(0) 编辑