- 博客(13)
- 资源 (1)
- 收藏
- 关注
原创 oracle 执行update时卡死问题解决
今天进行项目开发时,为了测试项目中SQL执行效果,就用PLSQL Developer执行了一下,没有commit就继续敲代码了,之后重新使用PLSQL Developer时,可能是网络原因,PLSQL Developer断开了与数据库连接并且卡死,便强制结束了。代码敲完后进行测试,项目执行后没效果,并且无响应,debug后发现jdbc执行SQL时没反应了,问了一下谷老师才找到原因。由于在PLSQL...
2012-11-07 19:14:38
304
原创 Linux man 命令数字含义
1 User Commands 2 System Calls 3 C Library Functions 4 Devices and Special Files 5 File Formats and Conventions 6 ...
2012-10-26 17:08:57
183
原创 oracle 字符串转行
CREATE TABLE t_str_row(ID INT,str VARCHAR2(50)); INSERT INTO t_str_row VALUES (1, 'v11|$|v12|$|v13|$|'); SELECT c.lv, rtrim(regexp_substr(t.str, '.*?\|\$\|', 1, c.lv),'\|\$\|') AS cv from (...
2012-10-22 17:51:20
314
struts2默认拦截器之chain
在struts2的struts-default.xml中定义了一个name为chain的拦截器,实现类是com.opensymphony.xwork2.interceptor.ChainingInterceptor。该拦截器主要是配合chain类型的result使用的,作用是将值栈中的各个对象的属性复制到当前执行的action对象中,那些实现了com.opensymphony.xwork2.Unc...
2012-05-08 22:32:31
133
原创 <jsp:directive.page import/>与<%@ page import %>的区别
<jsp:directive.page import=""/> 相当于 <%@ page import="" %> 但是也有区别:两个用法的作用范围不同,<%@ page import="" %> 可用于多个页面内而<jsp:directive.page import=""/>只能用于一个页面,不能跨页调
2012-02-17 11:49:21
140
原创 程序员不要做沙和尚
沙和尚是老老实实做事的典范,任劳任怨的挑死担,苦事累事一个人全做了,但功劳却没有一点。 做计算机软件开发的人员大多都有沙和尚的影子,基本上只知道埋头做事,做完了领导也不知道你在忙碌,因为领导没有看见你忙,甚至没有听说到你忙,自然你还是忙你自己的。而其它的一部分人,随便做了一点点小事也会到领导面前去说,也要让领导知道,这样一方面多和领导接触了,另一方面也让领导知道了自己在做事,于是乎自然...
2012-02-16 09:34:09
83
struts2默认拦截器之prepare
在struts2的struts-default.xml中定义了一个name为prepare拦截器,实现类是com.opensymphony.xwork2.interceptor.PrepareInterceptor,它的作用是为实现了com.opensymphony.xwork2.Preparable接口的action调用相关方法。该拦截器有两个参数:alwaysInvokePrepare,fi...
2012-02-02 11:26:13
128
struts2导致使用common-fileupload上传文件失败
朋友使用common-fileupload框架开发文件上传功能时获取不到上传的文件数据,代码如下:index.jsp <%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=utf-8"%><% String path...
2012-01-30 16:14:23
191
struts2默认拦截器之i18n
在struts2的struts-default.xml中定义了一个name为i18n拦截器,实现类是com.opensymphony.xwork2.interceptor.I18nInterceptor,它的作用是根据用户请求设置session的语言环境。该拦截器有三个参数,parameterName,requestOnlyParameterName,attributeName;前两个是设置用户...
2012-01-17 17:02:54
269
struts2默认拦截器之servletConfig
在struts2的struts-default.xml中定义了一个name为servletConfig拦截器,实现类是org.apache.struts2.interceptor.ServletConfigInterceptor,该拦截器功能比较简单,作用是对实现了ServletRequestAware,ServletResponseAware,ParameterAware,Applicatio...
2012-01-06 11:46:13
160
原创 struts2默认拦截器之exception
在struts2的struts-default.xml中定义了一个name为exception拦截器,实现类是com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor,它的作用是对action中的异常进行处理(输出异常日志,与配置文件中的<exception-mapping/>匹配). 该拦截器有三个参...
2012-01-04 11:26:01
248
struts2默认拦截器之autowiring
在struts2的struts-default.xml中定义了一个name为autowiring拦截器,实现类是com.opensymphony.xwork2.spring.interceptor.ActionAutowiringInterceptor,它的作用是在struts2和spring整合时为action注入spring上下文ApplicationContext(Action需要实现...
2011-12-31 16:30:18
135
struts2默认拦截器之alias
在struts2的struts-default.xml中定义了一个name为alias拦截器,实现类是com.opensymphony.xwork2.interceptor.AliasInterceptor,它的作用是给参数起一个别名,可用于在action链中以不同的名字共享同一个参数,也可用于把http请求参数以不同的名字映射到action里。拦截器有一个参数:al...
2011-12-31 16:17:41
187
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人