摘要: 1. 添加maven依赖项: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-mail</artifactId> <version>${spring-boot-versi 阅读全文
posted @ 2024-06-21 15:59 imgax 阅读(136) 评论(0) 推荐(0)
摘要: <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.11.0</version> <confi 阅读全文
posted @ 2024-04-18 17:23 imgax 阅读(13) 评论(0) 推荐(0)
摘要: 任务丢弃什么都不做,whenComplete后的代码也不会执行了 阅读全文
posted @ 2024-03-25 14:51 imgax 阅读(6) 评论(0) 推荐(0)
摘要: 1.获取编译器位置:pythonPython 2.7.18 (v2.7.18:8d21aa21f2, Apr 19 2020, 20:48:48)[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwinType "help", 阅读全文
posted @ 2024-03-18 11:29 imgax 阅读(95) 评论(0) 推荐(0)
摘要: m3安装python2.7.18下载地址https://www.python.org/downloads/macos/ 选择macOS 2.7.18版本 下载 阅读全文
posted @ 2024-03-18 10:17 imgax 阅读(630) 评论(0) 推荐(0)
摘要: public class SingletonObject { private static volatile SingletonObject instance; private SingletonObject() { } public static SingletonObject getInstan 阅读全文
posted @ 2021-02-18 15:03 imgax 阅读(82) 评论(0) 推荐(0)
摘要: 查询多个词: grep -E 'abc|def' source_file 反选: grep -v abc source_file 阅读全文
posted @ 2021-02-09 11:31 imgax 阅读(46) 评论(0) 推荐(0)
摘要: 需求场景: 给定多种路径的http链接,解析不同url的参数,根据参数获取数据,组织数据发送到特定接口。 实现思路: 处理不同url的过程有共同点,如发送数据的格式、接收接口的接口相同,都需要从url解析参数,获取、组织数据都需要使用数据库连接资源, 不同点是获取、组织数据的逻辑不同。 因此设计一个 阅读全文
posted @ 2021-01-30 14:37 imgax 阅读(65) 评论(0) 推荐(0)
摘要: sed命令截取文件 sed -n '10,20p' source_file > dest_file 阅读全文
posted @ 2021-01-30 13:50 imgax 阅读(79) 评论(0) 推荐(0)
摘要: 1.为什么会抛出异常? 迭代器实例生成后expectedModCount已确定,删减元素造成modCount变化,此后调用next方法内检查expectedModCount与modCount不一致,此时抛出异常2.如何避免异常? 迭代器内使用迭代器的删除元素方法,不在迭代器循环内增加元素 支持并发的 阅读全文
posted @ 2020-11-19 18:31 imgax 阅读(98) 评论(0) 推荐(0)