摘要: 一、冒泡排序 public class BubbleSort implements IArraySort { @Override public int[] sort(int[] sourceArray) throws Exception { // 对 arr 进行拷贝,不改变参数内容 int[] a 阅读全文
posted @ 2023-04-20 14:29 chillymint 阅读(15) 评论(0) 推荐(0)
摘要: 报错:"requestParam":null,"errorMsg":"org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: Null key for a Map not al 阅读全文
posted @ 2023-04-07 10:18 chillymint 阅读(911) 评论(0) 推荐(0)
摘要: centos7拉取mysql报mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory) > mysqld: [ERROR] Fatal error in defaults handl 阅读全文
posted @ 2023-03-30 22:44 chillymint 阅读(82) 评论(0) 推荐(0)
摘要: <p>一、卸载之前版本</p> sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logro 阅读全文
posted @ 2023-03-29 10:01 chillymint 阅读(31) 评论(0) 推荐(0)
摘要: // 招待费根据招待人数,陪同人数,人均标准自动带出申请金额 peopleChange = (value,field) => { const {form} = this.props if (value null) { form.setFieldsValue({amount: 0}) return } 阅读全文
posted @ 2023-03-28 15:51 chillymint 阅读(155) 评论(0) 推荐(0)
摘要: 一、JSON对象 有时候在做项目的时候时常将这两个概念弄混淆,尤其是在使用springmvc的时候,后台@RequestBody接受的是一个json格式的字符串,一定是一个字符串。 先介绍一下json对象,首先说到对象的概念,对象的属性是可以用:对象.属性进行调用的。例如: var person={ 阅读全文
posted @ 2023-03-28 10:35 chillymint 阅读(212) 评论(0) 推荐(0)
摘要: 一、实体类 List对应JSONArray[],对象对应JSONObject{} { imageSize:[ 1920,1080]对应类中可以写成class{private JSONArray imageSize;} } @Data @ApiModel(description = "Departme 阅读全文
posted @ 2023-03-27 23:12 chillymint 阅读(16) 评论(0) 推荐(0)
摘要: **一:com.alibaba.fastjson** 1、JSONObject和JSONArray的区别 JSONObject obj = jsonArray.getJSONObject(0); obj.getJSONObject("company"); [ { "set": "Y", "Cente 阅读全文
posted @ 2023-03-24 00:12 chillymint 阅读(125) 评论(0) 推荐(0)
摘要: mysqlbin目录cmd回车进入命令行界面或管理员身份运行; 1.登录mysql > mysql -u root -p 输入密码 2. >use mysql 重置密码 > update user set authentication_string='' where user='root'; >fl 阅读全文
posted @ 2023-03-23 20:04 chillymint 阅读(1400) 评论(0) 推荐(0)
摘要: //stream流根据集合某个字段去重,流.filter(distinctByKey) 定义方法 public static <T> Predicate<T> distinctByKey(Function<? super T, ?> keyExtractor) { Map<Object, Boole 阅读全文
posted @ 2023-03-23 12:38 chillymint 阅读(881) 评论(0) 推荐(0)