- 军军小站|张军博客
搜索到与相关的文章
编程技术

oscache源代码阅读(四) -- JSP/Servlet缓存Cach

oscache对于jsp/servlet的缓存是使用Filter来实现的,对应的类是com.opensymphony.oscache.web.filter.CacheFilter,既然是Filter那么要看的自然主要有三个方法:init、doFilter和destroy,这里#destroy()并没有具体实现,只关注前两个即可,首先看一下#init()方法,publicvoidinit(FilterConfigfilterConfig){config=fi

系统 2019-08-29 23:47:39 2752

编程技术

visual studio 2008 模板修改 - 自定义using引用

每次在项目中添加新类都要删掉一些不用的using,并且把公司类库加载上,很烦人.偶尔发现了vs的模板目录C:/ProgramFiles/MicrosoftVisualStudio9.0/Common7/IDE/ItemTemplates/Web/CSharp/2052注意:C盘是我安装vs的盘符于是手动修改这些模板文件,修改好后打包回去覆盖原来的Class.zip,然后在visualstuduo的命运行下运行devenv/setup就可以使用了。下面就是模

系统 2019-08-29 22:20:55 2752

Linux

linux bash shell 基本知识

以下为转载内容:$whichbashOpenupyoufavoritetexteditorandacreatefilecalledhello_world.sh.Insertthefollowinglinestoafile:NOTE:Everybashshellscriptinthistutorialstartswithshebang:"#!"whichisnotreadasacomment.Firstlineisalsoaplacewhereyouputy

系统 2019-08-29 22:13:00 2752

Linux

linux awk 学习笔记二(正则匹配、数学、逻辑匹

文章参考https://www.centos.bz/2012/07/awk-notes/正则表达式1匹配包含root的数据,并打印1~5的参数[root@auc-test2tmp]#gawk'BEGIN{FS=":"}/root/{print$1,$2,$3,$4,$5}'passwdrootx00rootoperatorx110operator数据是以r开头的,则打印第一个参数[root@eccs_webhuangbiao]#awk-F:'/^r/{pr

系统 2019-08-29 22:10:26 2752

各行各业

cygwin sshd服务启动不了的解决方案

问题起源:BTSPC机(windows)无法通过pscp命令去WiresharkPC机(windows)拷贝日志.出错日志:networkerror:connectionrefused.(我的问题就是ssh:connecttohostlocalhostport22:Connectionrefused,通过方法一解决)原因分析:pscp用于linux机和win机的命令拷贝,且需要linux机安装ssh服务.-->在Wireshark机上安装ssh-->ssh

系统 2019-08-12 09:27:43 2752

各行各业

How to install Zen Coding for Sublime Text 2

Togetittoworkonanyplatform,itissimplertousePackageControl.InstallPackageControl(http://wbond.net/sublime_packages/package_control/installation)&RestartSublimeInCommandPalette:"installpackage".Hitenter.Itwillswitchauto-completetosh

系统 2019-08-12 09:27:09 2752

数据库相关

[ACM] poj 1064 Cable master (二进制搜索)

CablemasterTimeLimit:1000MSMemoryLimit:10000KTotalSubmissions:21071Accepted:4542DescriptionInhabitantsoftheWonderlandhavedecidedtoholdaregionalprogrammingcontest.TheJudgingCommitteehasvolunteeredandhaspromisedtoorganizethemosthone

系统 2019-08-12 01:55:38 2752

Oracle

ORACLE 多表关联 UPDATE 语句

快乐无极,15:18,开发文档,评论(0),,阅读(539),Viaaceplus||引用地址:注意:该地址仅在今日23:59:59之前有效为了方便起见,建立了以下简单模型,和构造了部分测试数据:在某个业务受理子系统BSS中,--客户资料表createtablecustomers(customer_idnumber(8)notnull,--客户标示city_namevarchar2(10)notnull,--所在城市customer_typechar(2)

系统 2019-08-12 01:55:06 2752

Oracle

oracle查询语句中case when的使用

casewhen语句语法如下:casewhen表达式thenvalueAelsevalueBend;具体使用如下:select(casewhena.column1>=1then'成功'else'失败'end)asSuccess_flagfromtableAa如果a.column1的值大于等于1,那么Success_flag的值将是‘成功’,否则‘失败’。casewhen和decode函数用法有一些相似,只是decode是枚举函数,而casewhen则更加灵

系统 2019-08-12 01:54:48 2752

SqlServer

查询SQLSERVER执行过的SQL记录

原文:查询SQLSERVER执行过的SQL记录有的时候,需要知道SQLSERVER执行了什么语句,可以用下面的方法:SELECTTOP1000--创建时间QS.creation_time,--查询语句SUBSTRING(ST.text,(QS.statement_start_offset/2)+1,((CASEQS.statement_end_offsetWHEN-1THENDATALENGTH(st.text)ELSEQS.statement_end_o

系统 2019-08-12 01:52:27 2752