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 ,控制台无乱码输出