suzuki
suzuki · 共 18 篇文章
eclipse代码补全
1. 打开Eclipse ,然后“window”→“Preferences” 2. 选择“java”,展开,“Editor”,选择“Content Assist”。 3. 选择“Content Assist”,然后看到右边,右边的“Auto-Activation”下面的“Auto Activation triggers for java”这个选项。其实就是指触发代码提示的就是“.”这个符号。 “Auto activation delay”这个是延时,可以根据自己的需要进行设置。我设置的是20。 4. “Auto Activation triggers for java”这个选项,在“.”前加…
2011-05-30 09:16 · Java · 评论(0)
搜索引擎
参考: http://www.blogjava.net/zhyiwww/archive/2006/07/07/57122.html http://www.cnblogs.com/forfuture1978/archive/2009/12/14/1623594.html
2011-05-23 17:24 · 评论(0)
线程同步的原理分析的文章
http://www.iteye.com/topic/174591 http://www.iteye.com/topic/730236
2011-03-29 12:00 · 评论(0)
url编码
/** * 对URL进行encoder * @param compose * @return */ public static String encodeUrlCompose(String compose) { compose = compose.replaceAll(" \\x25 ", "%25"); compose = compose.replaceAll(" \\x26 ", "%26"); compose = compose.replaceAll(" \\x3F ", "%3F"); compose = compose.replaceAll(" \\x3D ", "%3D"); c…
2011-03-01 20:04 · 评论(0)
struts1异常处理
struts-config.xml配置全局异常 <global-exceptions> <exception handler="com.gmcc.boss.common.web.WebExceptionHandler" key="error.common.exception" scope="request" type="java.lang.Exception"/> </global-exceptions> 写一个类 extends ExceptionHandler 重写execute方法
2011-02-28 17:42 · 评论(0)
spring2.5+ibatis+oracle
<!-- 定义数据源 --> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" /> <property name="url" value="jdbc:oracle:thin:@192.168.1.100:1521:ORCL" /> <property name="username" value="zengfan…
2011-02-27 17:35 · 评论(0)
ibatis连接oracle报The Network Adapter could not establish the connection
java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection 可能是端口号错误
2011-02-27 17:30 · 评论(0)
eclipse中link方式安装svn插件
具体步骤如下: 1、在 http://subclipse.tigris.org/ 中下载 subclipse 插件 2、解压到eclipse安装目录中,具体目录结构如下 subclipse -----eclipse -------features,plugins 这两个就是解压出来的东西了 3、在eclipse中的dropins目录下新建后缀为.link的文件 例如:subclipse.link 加入 path=path=D:\eclipse\subclipse 4、重新启动eclipse就可以了。
2011-02-24 21:03 · 评论(0)
struts1配置多个struts-config.xml文件
1、用逗号分开 <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml,/WEB-INF/struts-config-size.xml</param-value> </init-param> 2、配置多个init-param <init-param> <param-name>config/common</param-name> <param-value>/WEB-INF/common/struts-config.xml</param-value> </init-param> 使用…
2011-01-30 15:21 · 评论(0)
javascript
/** */ function Lecture(name,teacher){ this.name=name; this.teacher=teacher; } Lecture.prototype.display=function(){ return this.name+","+this.teacher+"\n"; } /** Schedule的构造函数,以Lecture对象作为参数 */ function Schedule(lecture){ this.lecture=lecture; } Schedule.prototype.display=function(){ var str=""; f…
2011-01-27 15:18 · 评论(0)
eclipse快捷键详解
Alt+/:代码提示 Alt+← 前一个编辑的页面 Alt+→ 下一个编辑的页面(当然是针对上面那条来说了) Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了) Alt+↑ 当前行和上面一行交互位置(同上) Alt+Up(Down):将一行或者多行向上或者向下移动 Alt+Left: 回退一步[[BR]] Alt+Right:前跳一步[[BR]] Alt+Enter 显示当前选择资源(工程,or 文件 or文件)的属性 Shift+Enter 在当前行的下一行插入空行(这时鼠标可以在当前行的任一位置,不一定是最后) Shift+Ctrl+Enter 在当前行插入空行(…
2011-01-26 19:32 · 评论(0)
oracle笔记1
1、 以职位分组,找出平均工资最高的两种职位 select job from (select job, avg(sal) from scott.emp group by job order by avg(sal) desc) where rownum <= 2 在oracle中可以在from子句中包含一个结果集, 在此语句中,是将 select job,avg(sal) from scott.emp Group by job order by avg(sal) desc 看成一个结果集,再从查询出来的结果集中找rownum<=2的两行数据 查询语句的基本思想是: 1、 先给表中的数据分组、分…
2011-01-26 19:23 · 评论(0)