会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
平凡之路
关注业界, 关注互联网...
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
16
下一页
2020年11月20日
java.net.URL
摘要: 说明 URLConnection HttpURLConnection extends URLConnection Demo 请求API,不用发送参数 // 目标地址 URL url = new URL("https://api") // 转换 HttpURLConnection urlConnect
阅读全文
posted @ 2020-11-20 10:39 duchaoqun
阅读(585)
评论(0)
推荐(0)
2020年11月18日
Zabbix - Windows 安装 agent
摘要: Windows 安装 agent 下载客户端:https://www.zabbix.com/download_agents 有两种文件可以下载,一种是Archive,一种是MSI安装包 安装客户端 EnableRemoteCommands=1 # 允许在本地执行远程命令 LogRemoteComma
阅读全文
posted @ 2020-11-18 15:40 duchaoqun
阅读(200)
评论(0)
推荐(0)
PostgreSQL 配置 pg_hba.conf 允许远程访问
摘要: 配置 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
阅读(6068)
评论(0)
推荐(0)
2020年11月17日
com.itextpdf.layout.element.Table
摘要: IText 7 使用Table 使用表格来呈现数据。 Demo1 // 创建对象指定固定比例的列 Table table = new Table(UnitValue.createPercentArray(10)).useAllAvailableWidth() // 设置边框 table.setBor
阅读全文
posted @ 2020-11-17 15:16 duchaoqun
阅读(1339)
评论(0)
推荐(0)
2020年11月13日
com.itextpdf.layout.Style
摘要: 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
阅读(309)
评论(0)
推荐(0)
2020年11月4日
GSP - form
摘要: 表单 官方文档: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
阅读(121)
评论(0)
推荐(0)
2020年10月29日
Postman - POST multipart/form-data
摘要: 说明 以POST方式提交表单 案例 方法选择POST 再 body 处选择form-data 多个表单内容,可以选择文本,也可以选择文件。 都是以 Key-Value 的方式上传,然后再服务器端接收。 // micronaut 2.x @Post(value = "/test4", consumes
阅读全文
posted @ 2020-10-29 15:33 duchaoqun
阅读(1434)
评论(0)
推荐(0)
Calendar
摘要: 说明 日历信息,获取日期相关内容 案例 Calendar calendar = Calendar.getInstance() String year = calendar.get(Calendar.YEAR) // 当前年份 String month = calendar.get(Calendar.
阅读全文
posted @ 2020-10-29 09:51 duchaoqun
阅读(708)
评论(0)
推荐(0)
2020年10月28日
htmlunit 基础01
摘要: 说明 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
阅读(182)
评论(0)
推荐(0)
2020年9月18日
com.itextpdf.text.Image
摘要: 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
阅读(5022)
评论(0)
推荐(1)
上一页
1
2
3
4
5
6
···
16
下一页
公告