import socketdictlist ={};def ReadHost(): hosts = []; obn = open('d:/sss.txt', 'rb'); for line in obn: #sometime you should filter \r\...
分类:
其他好文 时间:
2014-06-28 21:53:30
阅读次数:
234
通过Bitmap.createScaledBitmap(Bitmapsrc, int dstWidth, int dstHeight, boolean filter);可以根据原来的位图创建一个新的位图。API中是这样解释的:Creates a new bitmap, scaled from an ...
分类:
数据库 时间:
2014-06-28 16:09:54
阅读次数:
280
参考Tomcat服务器目录webapps的examples示例 简单配置步骤:1.在项目web.xml文件添加过滤器标记和;2.实现过滤器代码;3.对Tomcat服务器conf目录里的Server.xml文件配置URIEncoding;4.前台页面设置contentType的charset值与web...
分类:
Web程序 时间:
2014-06-28 15:01:50
阅读次数:
233
首先是web.xml的配置,这个是项目加载的开始。 1 2 3 4 struts2 5 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter 6 7 8 ...
分类:
编程语言 时间:
2014-06-21 10:30:14
阅读次数:
253
在web.xml配置文件中(class在struts-core的jar包中) struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2...
分类:
其他好文 时间:
2014-06-20 21:37:25
阅读次数:
191
东西都上传到这里了:https://github.com/RexKang/Zabbix/tree/master/OS/Linux-disk-discovery 需要用到的东西:Zabbix的LLD:https://www.zabbix.com/documentation/2.0/manual/dis...
分类:
系统相关 时间:
2014-06-20 19:30:34
阅读次数:
393
1 package cn.itcast.h_filter; 2 3 import java.util.ArrayList; 4 import java.util.List; 5 6 import org.apache.lucene.document.Document; 7 import org...
分类:
其他好文 时间:
2014-06-20 16:11:12
阅读次数:
155
最近使用Springmvc,GET传输参数的时候,经常出错误,下面介绍添加一个Filter的方法,可以解决这个问题。既支持POST方式也支持GET方式。首先写一个Filterpackage com.qunar.filter;import java.io.IOException;import java...
分类:
编程语言 时间:
2014-06-20 14:59:50
阅读次数:
248
Society has always been competitive, but nowadays life is perhaps more competitive than in any previous era. Can you imagine the level of competition ...
分类:
其他好文 时间:
2014-06-20 13:45:03
阅读次数:
288
要把struts2的action交给spring管理,这样spring才能帮struts2注入需要的的bean(一开始action是由struts初始化,所以想注入spring里面的bean是注入不了的)
struts2 的filter生成action的时候由spring管理
struts2向spring要action
struts2是主导(struts2有个插件,要action的时候向这个...
分类:
编程语言 时间:
2014-06-18 08:07:13
阅读次数:
196