MyEclipse設置JSP頁面默認編碼方式:
windows(窗口)-Preferences(首選項)-MyEclipse-Files & Editors-JSP-右側encoding:設置為ISO10646/Unicode(UTF-8)
MyEclipse在Java文件中設置作者、日期等說明:
windows(窗口)-Preferences(首選項)-Java-Code Style(代碼樣式)-Code Templates(代碼模版)-右側Comments(注釋)-選擇Types(類型)-點擊edit(編輯)-輸入如下信息
/**
* @作者 Jcuckoo
* @創建日期 ${date}
* @版本 V 1.0
*/
點擊OK(確定)-選中左側的代碼樣式-選擇右側復選框(Automatically add Comments for new Methods and types)(自動為新方法和類型添加注釋)-點擊Apply(應用)-點擊OK(確定)
Eclipse在Java文件中設置作者、日期等說明:
windows(窗口)-Preferences(首選項)-Java-Code Style-Code Templates-右側Comments-選擇Types-點擊edit(編輯)-輸入如下信息
/**
* @作者 Jcuckoo
* @創建日期 ${date}
* @版本 V 1.0
*/
點擊OK-選中下面的復選框(Automatically add Comments for new Methods and types)-點擊Apply-點擊OK
windows(窗口)-Preferences(首選項)-MyEclipse-Files & Editors-JSP-右側encoding:設置為ISO10646/Unicode(UTF-8)
MyEclipse在Java文件中設置作者、日期等說明:
windows(窗口)-Preferences(首選項)-Java-Code Style(代碼樣式)-Code Templates(代碼模版)-右側Comments(注釋)-選擇Types(類型)-點擊edit(編輯)-輸入如下信息
/**
* @作者 Jcuckoo
* @創建日期 ${date}
* @版本 V 1.0
*/
點擊OK(確定)-選中左側的代碼樣式-選擇右側復選框(Automatically add Comments for new Methods and types)(自動為新方法和類型添加注釋)-點擊Apply(應用)-點擊OK(確定)
Eclipse在Java文件中設置作者、日期等說明:
windows(窗口)-Preferences(首選項)-Java-Code Style-Code Templates-右側Comments-選擇Types-點擊edit(編輯)-輸入如下信息
/**
* @作者 Jcuckoo
* @創建日期 ${date}
* @版本 V 1.0
*/
點擊OK-選中下面的復選框(Automatically add Comments for new Methods and types)-點擊Apply-點擊OK