- 浏览: 14502 次
- 性别:
- 来自: 深圳
最新评论
文章列表
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”这个选项, ...
参考:http://www.blogjava.net/zhyiwww/archive/2006/07/07/57122.html
http://www.cnblogs.com/forfuture1978/archive/2009/12/14/1623594.html
http://www.iteye.com/topic/174591
http://www.iteye.com/topic/730236
/** * 对URL进行encoder * @param compose * @return */ public static String encodeUrlCompose(String compose) { compose = compose.replaceAll("\\x25", "%25"); compose = compose.replaceAll("\\x26", "%26"); compose = compose.re ...
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 重 ...
<!-- 定义数据源 -->
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" /> <property name="url" value=&qu ...
java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
可能是端口号错误
具体步骤如下:
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就可以了。
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 ...
/***/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 s ...
Alt+/:代码提示Alt+← 前一个编辑的页面Alt+→ 下一个编辑的页面(当然是针对上面那条来说了)Alt+↓ 当前行和下面一行交互位置(特别实用,可以省去先剪切,再粘贴了)Alt+↑ 当前行和上面一行交互位置(同上)Alt+Up(Down):将一行或者多行 ...
1、 以职位分组,找出平均工资最高的两种职位
select job
from (select job, avg(sal)
from