摘要: import lombok.extern.slf4j.Slf4j; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetSocketAddress; @Slf4j public cla 阅读全文
posted @ 2022-12-30 10:54 小小爬虫 阅读(27) 评论(0) 推荐(0)
摘要: 在很多时候,我们使用循环,在循环体中处理逻辑使用的了大量内存,最终导致 程序OOM。对此,经过一些测试,最终找出优化方案。 策略 将不使用的对象赋值为null 主动调用GC 测试 前言 程序逻辑为循环100次,每次生成一个大内存的StringBuilder对象, 将StringBuilder对象转成 阅读全文
posted @ 2022-12-09 13:33 小小爬虫 阅读(109) 评论(0) 推荐(0)
摘要: ## ubuntu安装chrome 1. 下载安装包 - `wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb` - 下载指定版本 https://dl.google.com/linux/chr 阅读全文
posted @ 2022-11-02 15:06 小小爬虫 阅读(2684) 评论(0) 推荐(0)
摘要: 问题来源 在SpinrgBoot打包时,会生成一个可执行的jar文件,其中目录结构如下所示 test.jar ├─BOOT-INF │ ├─classes │ │ ├─com │ │ ├─static │ │ └─application.yml │ ├─lib | └─classpath.idx ├ 阅读全文
posted @ 2022-09-22 10:03 小小爬虫 阅读(1529) 评论(0) 推荐(0)
摘要: 配置文件 编辑/nginx/conf/nginx.conf文件 worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stre 阅读全文
posted @ 2022-08-23 21:57 小小爬虫 阅读(245) 评论(0) 推荐(0)
摘要: DEMO 代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>CSS3瀑布流</title> <style> /*大层*/ .container{ max-width: 1200px; min-width: 阅读全文
posted @ 2022-07-25 10:21 小小爬虫 阅读(152) 评论(0) 推荐(0)
摘要: 代码 import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.nodes.Node; import org.jsoup.nodes.TextNo 阅读全文
posted @ 2022-07-10 16:59 小小爬虫 阅读(79) 评论(0) 推荐(0)
摘要: 什么是WebSql WebSQL是一种运行在浏览器中的结构化数据库,类似于Android的 SQLite,使用方式几乎与SQL一致,丰富了浏览器的特性。 但 WebSQL 数据库 API 并不是 HTML5 规范的一部分,它是一个独立的规范。 简单使用 /** * 打开一个数据库,若没有则创建 * 阅读全文
posted @ 2022-07-09 18:06 小小爬虫 阅读(382) 评论(0) 推荐(0)
摘要: 基本使用 fetch(url, optionObj) 参数选项 optionObj = { method: "GET", headers: {"Content-Type": "text/plain;charset=UTF-8"}, body: undefined, referrer: "about: 阅读全文
posted @ 2022-06-24 14:22 小小爬虫 阅读(2684) 评论(1) 推荐(1)
摘要: 环境/组件 vue3/cli element-plus axios vue-waterfall-plugin-next 安装 vue-waterfall-plugin-next vue create my-waterfall #创建vue3/cli项目 cd my-waterfall #进入项目目录 阅读全文
posted @ 2022-06-22 14:44 小小爬虫 阅读(3966) 评论(0) 推荐(0)