Eclipse设置之:代码注释/server 控制台输出乱码解决

1           Eclipse设置

 

Configure clean up style The location is here:

 

 

 

And the configuration should follow these:

设置注释

Window->Preference->Java->Code Style->Code Template

Java 类头部:

/**

 * Copyright:   LDCC

 * Company:     LDCC

 * @fileName: ${file_name}

 * @Description:

 * @Create date: ${date} ${time}

* @Create by: jiahc(jiahongchang@ait.net.cn)

* @Update Date: ${date} ${time}

* @Update by: hj(hj@ait.net.cn)

* @version 5.1

 */

 

 

方法注释

/**

 * 方法说明(中文,英文)

 * @param parameterObject

 * @return

 * @throws Exception

 */

 

 

设置控制台输出字符编码方式:

项目-->右键-->Debug --> Debug Configrations

 

再次启动tomcat ,控制台无乱码输出

 

posted @ 2013-06-20 02:01  王超_cc  阅读(1531)  评论(0编辑  收藏  举报