其实是一个很小的问题,不过相信大多数人都遇上过,我反正是遇上好多次了,特别是在Eclipse中使用类的自动注释时,产生的老是是@author Administrator,每次都要手工去改很烦人。每次要么就是一个个手工改注释,要么就是把登陆用户改了
搜了国内很多地方都没有人知道方法,最后在官网的一个角落里找到了答案
在Eclipse启动时加入参数 -vmargs -Duser.name="whateveryouwant"
http://dev.eclipse.org/mhonarc/lists/platform-dev/msg00635.html
如果用Myeclipse的话,在myeclipse.ini最后加上-Duser.name=yourname。
搜了国内很多地方都没有人知道方法,最后在官网的一个角落里找到了答案
在Eclipse启动时加入参数 -vmargs -Duser.name="whateveryouwant"
http://dev.eclipse.org/mhonarc/lists/platform-dev/msg00635.html
如果用Myeclipse的话,在myeclipse.ini最后加上-Duser.name=yourname。