会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
YSHY
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
66
下一页
2018年4月1日
003-Go初探Iris
摘要: 1、参考资源:https://iris-go.com/v10/start#Getting-Started 2、首先下载:go get -u github.com/kataras/iris,此处时间较长,需要稍等一会。 3、新建测试项目 注意:https://iris-go.com/v10/start
阅读全文
posted @ 2018-04-01 08:57 yshy
阅读(204)
评论(0)
推荐(0)
2018年3月31日
通过HttpClient4.5模拟Form表单文件上传
摘要: 依赖包: commons-logging-1.2.jar httpclient-4.5.3.jar httpcore-4.4.6.jar httpmime-4.5.3.jar
阅读全文
posted @ 2018-03-31 11:33 yshy
阅读(879)
评论(0)
推荐(0)
002-Go通过ioutil 读写文件
摘要: 1、读取文件内容 2、写入文件
阅读全文
posted @ 2018-03-31 11:24 yshy
阅读(539)
评论(0)
推荐(0)
2018年3月30日
001-Go JSON处理
摘要: 在golang中提供的encoding/json包可以编码JSON以及解码JSON数据。 1、编码JSON 使用json包中的Marshal函数进行编码,源码如下: (1)将一个结构体转码JSON 输出结果: 说明:json包在解析结构体时,如果遇到key为json的字段标签,则会按照一定规则解析该
阅读全文
posted @ 2018-03-30 22:21 yshy
阅读(246)
评论(0)
推荐(0)
2018年3月22日
通过httpclient3实现文件下载以及获取文件下载名称
摘要: 依赖jar包 commons-codec-1.2.jar commons-httpclient-3.1.jar commons-logging-1.2.jar
阅读全文
posted @ 2018-03-22 13:58 yshy
阅读(4383)
评论(0)
推荐(0)
2018年3月20日
java zxing生成二维码
摘要: jar: zxing-core-3.2.0.jar zxing-javase-3.2.0.jar
阅读全文
posted @ 2018-03-20 19:43 yshy
阅读(242)
评论(0)
推荐(0)
2018年2月8日
忘记MySQL root密码重置MySQL root密码
摘要: (1)停止mysql# /etc/init.d/mysql stop(2)以不检查权限的方式启动# mysqld --skip-grant-tables &(3)登录mysql修改root用户口令# mysql -u rootmysql> update mysql.user set password
阅读全文
posted @ 2018-02-08 08:36 yshy
阅读(139)
评论(0)
推荐(0)
2018年2月5日
Java通过ScriptEngine 执行js脚本案例
摘要: public static void main(String[] args) throws ScriptException, FileNotFoundException, NoSuchMethodException { ScriptEngine engine = new ScriptEngineManager().getEngineByName("javascript"); ...
阅读全文
posted @ 2018-02-05 22:06 yshy
阅读(1989)
评论(0)
推荐(0)
2018年1月8日
两个自定义对象List列表取交集(intersection)
摘要: public static void main(String[] args) { List list = ListUtils.intersection(getFpList1(), getFpList2()); for(Fpxx fp:list){ System.out.println(fp); } ...
阅读全文
posted @ 2018-01-08 20:28 yshy
阅读(1586)
评论(0)
推荐(0)
2018年1月4日
Java 判断Windows下某个进程是否运行
摘要: public static void main(String[] args) { String keyWord = "chrome.exe"; Runtime runtime = Runtime.getRuntime(); try { Process process = runtime.e...
阅读全文
posted @ 2018-01-04 11:14 yshy
阅读(4515)
评论(1)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
66
下一页
公告