10 2021 档案
摘要:SpringBoot基础注解使用示例 首发 示例代码 IDEA创建maven项目 创建Spring Initializr项目,并定义项目名、包名,无脑下一步 创建加载完成后,项目文件夹结构示例(需要处理依赖,可能加载较慢) 基础注解及示例 @Autowired自动注入 右键cn.hiyj.sprin
阅读全文
摘要:首发地址 搭配表 根据搭配表暴力生成所有拼音组合 std::vector<std::string> TABLE = []() { std::vector<std::string> master{"", "b", "p", "m", "f", "d", "t", "n", "l", "g", "k",
阅读全文
摘要:个人博客地址 简介 自己需要在项目中使用redis-cache插件,但是官方放出来的包太老了,仓库代码更新倒是还可以,所以打算自己封装下,修改下加载配置文件的方式。 需求 有时候需要在普通类获取到Bean,但是new出来的对象不会被注入,这时就需要通过SpringBoot上下文去获取Bean,思路很
阅读全文
摘要:源码链接 个人博客地址 具体实现 import hashlib path = '' with open(path, 'rb') as f: print(hashlib.md5(f.read()).hexdigest())
阅读全文
摘要:源码链接 个人博客地址 具体实现 import math from concurrent.futures import ProcessPoolExecutor import requests # 设置超时时间为30s # socket.setdefaulttimeout(30) # 默认每个片最小2
阅读全文
摘要:安装工具 sudo add-apt-repository ppa:lakinduakash/lwh sudo apt install linux-wifi-hotspot 项目地址 https://github.com/lakinduakash/linux-wifi-hotspot
阅读全文
摘要:源码链接:https://github.com/WindSnowLi/My-python-tools/tree/main/CheckID 个人博客地址:https://www.blog.hiyj.cn/article/detail/115 区号列表 {"110000":"北京市","110101":
阅读全文
摘要:rw_ini_base 使用C++标准库解析ini格式文件,只提供解析后的表和写入函数,查询、修改等功能可自行添加函数 个人博客地址:https://www.blog.hiyj.cn/article/detail/114 源码链接:https://github.com/WindSnowLi/rw_i
阅读全文
摘要:安装驱动 我的是CH320G版本,安装CH320驱动 uname -r查看自己的内核版本 https://elixir.bootlin.com/linux/v5.11/source/drivers/usb/serial/ch341.c#找到对应的源代码,复制出来并保存为ch34x.c与ch34x.c
阅读全文