摘要: 解决方案是给各个gradle属性文件配置代理 注意gradle.properties配置代理会导致 Could not get resource 'https://maven.aliyun.com/repository/gradle-plugin/org/jetbrains/kotlin/kotli 阅读全文
posted @ 2025-11-12 13:26 妲丽安的书架 阅读(1) 评论(0) 推荐(0)
摘要: 如果网络环境无法直接进入github, 首先需要一个代理软件 打开代理, 确保能进入github 输入 git config --global -l查看 http.proxy= http.https://github.com.proxy= http.proxy= 检查=之后的代理号是否与Window 阅读全文
posted @ 2025-11-12 00:54 妲丽安的书架 阅读(5) 评论(0) 推荐(0)
摘要: 使用pdfwriter创建writer对象,使用document创建文档: // 创建新的PDF文档 PdfWriter writer = new PdfWriter("order_report.pdf"); PdfDocument pdfDoc = new PdfDocument(writer); 阅读全文
posted @ 2025-10-23 14:00 妲丽安的书架 阅读(5) 评论(0) 推荐(0)
摘要: 在之前的jsoup解析本地html网页到本地中,虽然可以实现不同食物的解析,但是每个食物单独写一个方法实在太麻烦了 注意到所有食物均属于Food的子类,且解析方法中有许多重复代码 可将Food food以及Element foodDiv这两个方法中重复的参数作为通用方法的参数,提取公用方法: // 阅读全文
posted @ 2025-10-23 13:35 妲丽安的书架 阅读(4) 评论(0) 推荐(0)
摘要: 对于以下网页: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <tit 阅读全文
posted @ 2025-10-22 16:59 妲丽安的书架 阅读(13) 评论(0) 推荐(0)