易截截图软件、单文件、免安装、纯绿色、仅160KB

Eclipse Java注释模板设置详解

Eclipse Java注释模板设置详解  ===参考
http://blog.csdn.net/ahhsxy/archive/2009/09/11/4542682.aspx
简单模板例子:
view
plain
copy
to clipboard
print
?
<?xml version=
"1.0"
 encoding=
"UTF-8"
?><templates><template autoinsert=
"true"
 context=
"fieldcomment_context"
 deleted=
"false"
 description=
"字段的注释"
 enabled=
"true"
 id=
"org.eclipse.jdt.ui.text.codetemplates.fieldcomment"
 name=
"fieldcomment"
>
/**
 
* @Fields ${field} : ${todo}(用一句话描述这个变量表示什么)
 
*/
  
</template><template autoinsert="true"
 context=
"gettercomment_context"
 deleted=
"false"
 description=
"getter 方法的注释"
 enabled=
"true"
 id=
"org.eclipse.jdt.ui.text.codetemplates.gettercomment"
 name=
"gettercomment"
>
/**
 
 * @return ${bare_field_name}
 
 */
  
 </template><template autoinsert="true"
 context=
"constructorcomment_context"
 deleted=
"false"
 description=
"创建的构造函数的注释"
 enabled=
"true"
 id=
"org.eclipse.jdt.ui.text.codetemplates.constructorcomment"
 name=
"constructorcomment"
>
/**
 
* <p>Title:${file_name} </p>
 
* <p>Description: 构造函
数</p>
 
* ${tags}
 
*/
  
</template><template autoinsert="true"
 context=
"filecomment_context"
 deleted=
"false"
 description=
"已创建的 Java 文件的注释"
 enabled=
"true"
&


相关文档:

Java编码


Java编码
 
pageEncoding是jsp文件本身的编码
 
contentType的charset是指服务器发送给客户端时的内容编码
 
JSP要经过两次的“编码”,第一阶段会用pageEncoding,第二阶段会用utf-8至utf-8,第三阶段就是由Tomcat出来的网页, 用的是contentType。
 
第一阶段是jsp编译成.jav ......

Java中最基础的类似于HelloWorld程序的编写

下面这段程序是实现了两个操作数加法的操作运算
/**
  *the First Java
  *@author wanglei
  *@version 1.0
  */
import java.util.Scanner;
public class FirstJava{
 public static void main(String[] args){
  
  /**声明两个整型变量*/
  int opA ......

点点滴滴(Java)

native2ascii
    在WINDOWS平台下编写的资源文件,以GB2312方式编码,在编译时需要转码,以确保在各个平台上的正确性
    编码:
        native2ascii -encoding utf8 temp.properties ApplicationResources_zh_CN.properties
 &n ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号