摘要: 1.区别 当获取一个不存在key值时,net.sf.json.JSONObject 会抛异常,com.alibaba.fastjson.JSONObject 会返回null 如图: 阅读全文
posted @ 2020-08-21 11:21 伏沙金 阅读(830) 评论(0) 推荐(0) 编辑
摘要: 最新有个新需求,要异步拼接html并渲染数据,并且我这边是用layui的flow.load(流加载)渲染多个进度条。 按官网给出的 element.progress('demo', n+'%'); 就是回显不出来。 两种解决方法 一。html拼接完之后加上 element.init(); 1.代码如 阅读全文
posted @ 2020-08-17 11:34 伏沙金 阅读(1386) 评论(2) 推荐(0) 编辑
摘要: 一。思路 解析链接 >获取数据-->存入数据库 二。代码 1.pom.xml <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.5.9</v 阅读全文
posted @ 2020-08-11 17:14 伏沙金 阅读(669) 评论(0) 推荐(0) 编辑
摘要: 一。分类与区别 1.根据数据流的方向分为 输出流和输入流 2.根据处理数据单位分为 字节流和字符流, 1字符=2字节 字节流:处理所有类型的数据,如图像,视频,以及PPT,Word类型的文件,使用字节流时可能会出现中文乱码,类型为(byte),直接操作文件,没有缓存区,不用调用close()也能输出 阅读全文
posted @ 2020-07-29 14:43 伏沙金 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 一。pom.xml 添加依赖 <!--阿里云短信--><dependency> <groupId>com.aliyun</groupId> <artifactId>aliyun-java-sdk-dysmsapi</artifactId> <version>1.1.0</version></depe 阅读全文
posted @ 2020-07-17 14:47 伏沙金 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 一。邮箱要先开启IMAP/SMTP服务,开启后会显示授权码,保存下来,这是发送邮件时需要的密码。(我这是qq邮箱) 二。pom.xml,引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-b 阅读全文
posted @ 2020-07-17 14:18 伏沙金 阅读(1379) 评论(0) 推荐(0) 编辑
摘要: 一。安装 使用rabbitMQ时需要下载安装erlang环境,因为rabbitMQ是用erlang语言编写的,此时注意 erlang版本是否与 rabbitMQ 版本兼容 erlang官方地址: https://www.erlang.org/downloads rabbitMQ官方地址:https: 阅读全文
posted @ 2020-07-14 18:16 伏沙金 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 一。pom.xml 导入 redis <!-- Redis依赖 --><dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId></d 阅读全文
posted @ 2020-07-14 15:55 伏沙金 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 一.中国地图 1.先导入echarts,然后再main.js里引入echarts // 引入echartsimport echarts from 'echarts'Vue.prototype.$echarts = echarts// 还要特别引入china.json,这样中国地图才会出现,不然只会出 阅读全文
posted @ 2020-07-01 10:39 伏沙金 阅读(8172) 评论(6) 推荐(2) 编辑
摘要: 1.java排序 Collections.sort(list, new Comparator() { @Override public int compare(Object o1, Object o2) { //按value值排序 int firValue = ((JSONObject) o1).g 阅读全文
posted @ 2020-07-01 09:32 伏沙金 阅读(413) 评论(0) 推荐(0) 编辑