摘要:
使用ITEXT 给 PDF 文件生成目录的三种方式 资源截图: 资源说明: “ITEXT 生成目录源码”文件夹 有三种生成 PDF 目录的源码: 方法一:根据标题关键字找到所在页码,生成目录页,拆分文档再拼接(我使用的这种,因为PDF是通过html模板生成的,无法获取到指定内容所在页码,所以只能采用 阅读全文
摘要:
1.在新GIT仓库创建一个新的仓库存放本地代码(什么文件都不要) 2.查看本地代码关联GIT地址 git remote -v 3.删除本地的远程仓库地址 git remote remove origin 4.绑定新的GIT地址 git remote add origin 自己新创建的远程仓库地址 5 阅读全文
摘要:
接口传输数据加密、解密、加签、验签(AES,RSA,Sign) 理解公钥与私钥:https://songlee24.github.io/2015/05/03/public-key-and-private-key/ Demo public static void testCert() { RSA rs 阅读全文
摘要:
JAVA查询树结构数据(省市区)使用hutool工具实现 代码: @PostMapping("/getTree") public Object getTree() { // 查询数据 List<LxhpArea> areaList = areaService.list(); // 构建的整个树数据 阅读全文
摘要:
SVN代码迁移至Gitlab 1.导出SVN提交用户(需要在SVN代码目录执行,并且要在GIT BASH 窗口运行) svn log --xml | grep "^<author" | sort -u | \awk -F '<author>' '{print $2}' | awk -F '</aut 阅读全文
摘要:
Spring Boot 获取项目路径或文件 @GetMapping("/getPath") public void getPath() { // 获取路径三种方法方法,使用Spring Boot 方式,只有 pathA 部署到服务器获取到得路径是能直接使用得 String pathA = Syste 阅读全文
摘要:
Spring Boot使用 @Async 注解进行异步调用 创建异步调用线程池配置代码: import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configu 阅读全文
摘要:
JAVA流操作 file 转 数组,方法一: File file = new File("D:\\111.pdf"); // File 转数组 FileInputStream fis = new FileInputStream(file); ByteArrayOutputStream bos = n 阅读全文
摘要:
增强for、lambda for、stream 遍历List 结束方法 or 跳过循环本次循环 List<Integer> list = Arrays.asList(1, 2, 3, 4); System.out.println("forEach"); list.forEach(e -> { if 阅读全文
摘要:
应用编写的防火墙规则: iptables-restore < /etc/iptables/rules.v6 在 INPUT 表指定位置添加一条规则: iptables -I INPUT 6 -p tcp -m state --state NEW -m tcp --dport 8082 -j ACCE 阅读全文