会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
行云有影
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
15
16
17
18
19
20
21
22
23
···
35
下一页
2014年4月17日
sql语句使用
摘要: 1、查询一张表的记录总数String sql = " select count(*) mycount from tb_type" ; result = Integer.parseInt(map.get("mycount").toString());2、更改积分+1String sql="update...
阅读全文
posted @ 2014-04-17 08:49 行云有影
阅读(217)
评论(0)
推荐(0)
2014年4月8日
java子类继承父类构造函数
摘要: 如果父类有有参构造函数则子类也要有参构造函数,且显示调用super(参数);
阅读全文
posted @ 2014-04-08 17:45 行云有影
阅读(241)
评论(0)
推荐(0)
2014年4月7日
抓到网页数据后编码转换
摘要: 转换成GBK String html = fetchUrlService.get(url); //用默认字符编码解码字符串。 byte[] bs = html.getBytes(); //用新的字符编码生成字符串 html= new String(bs, "GBK");Done
阅读全文
posted @ 2014-04-07 15:44 行云有影
阅读(180)
评论(0)
推荐(0)
2014年4月4日
接口
摘要: 1、接口interface里面的方法methodA可以有interface.methodA();但是使用之前必须要有interface=new classAImpl();或者interface=new classBImpl();classAImpl,classBImpl继承接口interfaceA,并且实现了methodA();然后interface.methodA();实现了不同的方法
阅读全文
posted @ 2014-04-04 10:14 行云有影
阅读(121)
评论(0)
推荐(0)
2014年4月3日
正则表达式匹配目标
摘要: 1、html 白天 ...
阅读全文
posted @ 2014-04-03 10:31 行云有影
阅读(291)
评论(0)
推荐(0)
2014年4月1日
index.jsp自动跳转执行Action
摘要: 1、onload属性跳转到servlet,地址是:http://lenovo:8080/wx_kaoyan/servlet/MainAction 2、jsp:forward跳转到servlet,地址是:http://lenovo:8080/wx_kaoyanDone!
阅读全文
posted @ 2014-04-01 19:30 行云有影
阅读(752)
评论(0)
推荐(0)
2014年3月31日
struts2区分get/post请求
摘要: 1/*** Struts2判断GET/POST请求*/String method = ServletActionContext.getRequest().getMethod();System.out.println(method);if (method.equals("POST")) {// 注意全部大写System.out.println("POST请求");} else {System.out.println("GET请求");}2、当服务器上跑一个工程时,访问index.jsp的方法是get方法Done
阅读全文
posted @ 2014-03-31 20:29 行云有影
阅读(3229)
评论(0)
推荐(0)
2014年3月25日
注意的小点
摘要: mMapView.getOverlays().clear();会清除ItemizedOverlay但是不会清除PopupOverlay
阅读全文
posted @ 2014-03-25 17:08 行云有影
阅读(111)
评论(0)
推荐(0)
百度坐标点
摘要: gffGeoPoint geoPoint = new GeoPoint((int) (30.484172* 1E6), (int) (114.399888 * 1E6));Done!
阅读全文
posted @ 2014-03-25 16:52 行云有影
阅读(225)
评论(1)
推荐(0)
2014年3月24日
定位功能以及定位图层的使用
摘要: 1、定位端、定位监听器,定位图层 /* * 此处需要注意:LocationClient类必须在主线程中声明。需要Context类型的参数。 * Context需要时全进程有效的context,推荐用getApplicationConext获取全进程有效的context */ public LocationClient mLocationClient = null; // BDLocationListener处理定位结果 // MyLocationListener实现两个方法:定位请求回调函数+poi请求回调函数 public BDLocatio...
阅读全文
posted @ 2014-03-24 18:47 行云有影
阅读(907)
评论(0)
推荐(0)
上一页
1
···
15
16
17
18
19
20
21
22
23
···
35
下一页
公告