`
az12xc34
  • 浏览: 13201 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
  在IE需要加空格 显示css
WEB-INF下的不能被直接访问 http response content未被浏览器解释 chain 在web-xml配置
http://my.oschina.net/xpbug/blog/104412 完整理解XML领域
mv命令   用户可以使用mv命令来为文件或目录改名或将文件由一个目录移入另一个目录中。该命令如同DOS下的ren和move的组合。   语法:mv [选项] 源文件或目录 目标文件或目录   说明:视mv命令中第二个参数类型的不同( ...
The benefit of using Velocity 1. The most important benefit is decrease the maintenance cost.  It’s no need to looking into the java code to see what is the SQL or HQL we are using, changing one place will resolve the same problem.  In addition, it will reduce the duplicated code, any place want ...
str=${str##*(} str=${str%)*}  Linux下获得目录路径比较常用的是pwd命令和getcwd()函数了,但是有时候并不能很容易的match一些比较常用的需求。问题来自闪电的一个问题,他写了一个程序放在一个文件夹里面交给客户,这个文件夹里面有若干应用程序和若干文件,客户可以把这个文件夹放在任意的目录,然后客户使用绝对路径跑文件夹里面的一个程序:/program/a/b/c/d/e/folder/fgh.sh,在客户跑的fgh.sh这个程序里要用到和它在同一个文件夹的其他文件:/program/a/b/c/d/e/folder/1.txt。   这样就需要在fgh.s ...
# x=* # echo $x hello.sh menus.sh misc.sh phonebook tshift.sh # echo '$x' $x # echo "$x" * 这个例子可以看出无引号、单引号和双引号之间的区别。在最后一种情况中,双引号告诉shell在引号内照样进行变量名替换,所以shell把$x替换为*,因为双引号中不做文件名替换,所以就把*作为要显示的值传递给echo。 对于第一种情况需要进一步说明,shell在给变量赋值时不进行文件名替换(这从第三种情况中也能看出来),各步骤发生的精确次序如下: shell扫描命令行,把x的值设为星号*; shell ...
-- %TOMCAT_HOME%\conf\server.xml 搜索8080, 改成其他端口号 -- remove the x-powered-by and server info in the response header https://forums.oracle.com/forums/thread.jspa?threadID=2430035 -- jsp on time ---> servlet    <!--   development         Is Jasper used in development mode? If true,   -->    & ...
前言 Jmockit是一个超强大的ut mock工具, 与其他mock工具最大的特点是可以对final类, 静态方法进行mock! 这是其他mock工具不可比的. 这也成为我们选它做ut的原因. 多种mock工具特色比较: http://code.google.com/p/jmockit/wiki/MockingToolkitComparisonMatrix 一 jmockit加载注意事项 1 由于jmockit用到了jdk1.5的instrument特性, 所以必需用1.5以上的jdk运行 2 如果junit版本是4.x, 需要4.8以上的版本, 而且在设置classpath时jmocki ...
Mockup always comes to us when we try to break system dependency. The conventional mockup frameworks only allowed us to mock instance methods. So the static methods usually become to the death of testability. Of course, we still have some way to make it become testable. 1. If the static methods inv ...

一个开始

给自己定个标准,两天一篇,所得所思,勿荒废时光。
Global site tag (gtag.js) - Google Analytics