上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 依赖(谷歌基于lucene的中文分词IKAnalyzer) <dependency> <groupId>org.wltea</groupId> <artifactId>ikanalyzer</artifactId> <version>5.0.2</version> </dependency> <de 阅读全文
posted @ 2023-04-25 10:12 小小爬虫 阅读(74) 评论(0) 推荐(0) 编辑
摘要: import com.example.newsmanager.model.Token; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http. 阅读全文
posted @ 2023-04-24 13:08 小小爬虫 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 方案 chrome中谷歌翻译使用的是translate.googleapis.com服务的API 国内有一些还可以继续使用的服务IP 只要找到可用的IP,然后在hosts中进行ip-host映射即可使用翻译服务 解决 https://raw.githubusercontent.com/hcfyapp 阅读全文
posted @ 2023-04-12 09:12 小小爬虫 阅读(117) 评论(0) 推荐(0) 编辑
摘要: @Repository public interface XxxMapper extends BaseMapper<Xxx> { @Select("SELECT COUNT(1) > 0 FROM xxx WHERE ${condition} LIMIT 1") boolean exist(Stri 阅读全文
posted @ 2023-02-16 12:59 小小爬虫 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 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 小小爬虫 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 在很多时候,我们使用循环,在循环体中处理逻辑使用的了大量内存,最终导致 程序OOM。对此,经过一些测试,最终找出优化方案。 策略 将不使用的对象赋值为null 主动调用GC 测试 前言 程序逻辑为循环100次,每次生成一个大内存的StringBuilder对象, 将StringBuilder对象转成 阅读全文
posted @ 2022-12-09 13:33 小小爬虫 阅读(87) 评论(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 小小爬虫 阅读(1955) 评论(0) 推荐(0) 编辑
摘要: 问题来源 在SpinrgBoot打包时,会生成一个可执行的jar文件,其中目录结构如下所示 test.jar ├─BOOT-INF │ ├─classes │ │ ├─com │ │ ├─static │ │ └─application.yml │ ├─lib | └─classpath.idx ├ 阅读全文
posted @ 2022-09-22 10:03 小小爬虫 阅读(1318) 评论(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 小小爬虫 阅读(196) 评论(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 小小爬虫 阅读(136) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页