2008年11月06日

原创 没有跳转到errorPage收藏

没有跳转到errorPage,异常页面没有跳转,异常页面内容过少阅读全文>

发表于 @ 2008年11月06日 23:06:00|收藏

2008年08月25日

转载 myeclipse设置模板收藏


 
 
在<%myeclipse安装目录%>\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_6.0.1.zmyeclipse601200710\templates\jsp  目录下找到Jsp.vtl,复制一份,重命名为jsp2.vtl,然后把里面的内容修改为自己想要的格式,保存。
然后在 D:\Program Files\MyEclipse 6.0\myeclipse\eclipse\plugins\com.genuitec.eclipse.wizards_6.0.1.zmyeclipse601200710 目录下找到templates.xml,用文本编辑器打开。在
      阅读全文>

发表于 @ 2008年08月25日 11:16:00|收藏

2008年08月23日

原创 反射小例子收藏


package aa;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
public class Test {
 private int id;
 public int getId() {
  return id;
 }
 public void setId(int id) {
  this.id = id;
 }
 public static void setValueByField(String fiel阅读全文>

发表于 @ 2008年08月23日 21:23:00|收藏

2008年07月28日

原创 myeclipse设置自定义快捷方式的方法收藏


例子:
window->preferences->java->editor->templates->new

Name :PRM(大小都可以)

Patterm:
private ${return_type} ${name}(){
     ${return_type} returnValue= null;
     return returnValue;
}

在代码编辑窗口中方法之外输入
PRM然后按alt+/(myeclipse6.0的话需要重新设置,可以百度一下.)
结果就显示
 private return_type name() {
  return_type returnValue = null;阅读全文>

发表于 @ 2008年07月28日 00:53:00|编辑|收藏

Csdn Blog version 3.1a
Copyright © 苏华新