上一页 1 2 3 4 5 6 ··· 16 下一页
摘要: 说明 URLConnection HttpURLConnection extends URLConnection Demo 请求API,不用发送参数 // 目标地址 URL url = new URL("https://api") // 转换 HttpURLConnection urlConnect 阅读全文
posted @ 2020-11-20 10:39 duchaoqun 阅读(563) 评论(0) 推荐(0) 编辑
摘要: Windows 安装 agent 下载客户端:https://www.zabbix.com/download_agents 有两种文件可以下载,一种是Archive,一种是MSI安装包 安装客户端 EnableRemoteCommands=1 # 允许在本地执行远程命令 LogRemoteComma 阅读全文
posted @ 2020-11-18 15:40 duchaoqun 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 配置 pg_hba.conf 允许远程访问 # 将默认的 * 替换成本机的内网IP地址。 vim /var/lib/pgsql/11/data/postgresql.conf listen_addresses = "*" # 默认的配置 listen_addresses = '172.26.114. 阅读全文
posted @ 2020-11-18 11:07 duchaoqun 阅读(3741) 评论(0) 推荐(0) 编辑
摘要: IText 7 使用Table 使用表格来呈现数据。 Demo1 // 创建对象指定固定比例的列 Table table = new Table(UnitValue.createPercentArray(10)).useAllAvailableWidth() // 设置边框 table.setBor 阅读全文
posted @ 2020-11-17 15:16 duchaoqun 阅读(998) 评论(0) 推荐(0) 编辑
摘要: Demo 样式的复用 // 样式的复用 Style normal = new Style() normal.setFont(basefont).setFontSize(9) Style code = new Style() code.setFont(basefont).setFontColor(Co 阅读全文
posted @ 2020-11-13 09:30 duchaoqun 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 表单 官方文档:https://docs.grails.org/3.1.1/ref/Tags/form.html 属性 useToken:可选的,处理重复提交的问题。 案例一 注意:使用js提交表单的时候需要使用class,不要使用id,form标签中的id有特别的用途 <g:form resour 阅读全文
posted @ 2020-11-04 15:03 duchaoqun 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 说明 以POST方式提交表单 案例 方法选择POST 再 body 处选择form-data 多个表单内容,可以选择文本,也可以选择文件。 都是以 Key-Value 的方式上传,然后再服务器端接收。 // micronaut 2.x @Post(value = "/test4", consumes 阅读全文
posted @ 2020-10-29 15:33 duchaoqun 阅读(1350) 评论(0) 推荐(0) 编辑
摘要: 说明 日历信息,获取日期相关内容 案例 Calendar calendar = Calendar.getInstance() String year = calendar.get(Calendar.YEAR) // 当前年份 String month = calendar.get(Calendar. 阅读全文
posted @ 2020-10-29 09:51 duchaoqun 阅读(696) 评论(0) 推荐(0) 编辑
摘要: 说明 Jvm系后端访问Web包。 API:https://htmlunit.sourceforge.io/apidocs/index.html gradle引用 // 抓取网页 // https://mvnrepository.com/artifact/net.sourceforge.htmluni 阅读全文
posted @ 2020-10-28 15:06 duchaoqun 阅读(177) 评论(0) 推荐(0) 编辑
摘要: com.itextpdf.text.Image 在插入图像到指定位置的时候,我们最好使用表格进行布局,不要直接设置图像的相对位置。 在相对位置上插入图片 // 在文件中插入图像: String imgURL = "https://blog-static.cnblogs.com/files/duchaoqun/wechat.ico" Image image = Image.getInsta... 阅读全文
posted @ 2020-09-18 13:21 duchaoqun 阅读(4716) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 ··· 16 下一页