The user name of the system is logged in when you create a new Java file by default in eclipse, but it is best to write the developer's real name when developing the project, so it is easy to contact the author to solve the problem when the code author.
There are two ways to modify the default author in eclipse:
1. Modify the Eclipse configuration file Eclipse.ini
Join behind the-vmargs
-duser.name=zhansan
Restarting eclipse after saving is in effect (note, be sure to load-vmargs behind, otherwise no effect).
2, set Eclipse parameters
Windows-->preference-->java-->code Style-->code templates-->code-->new java files
The contents are as follows:
${package_declaration}
/**
* @author ${user}
*
* ${date}${time}
*/
${typecomment}
${type_declaration}
Modified to:
${package_declaration}
/**
* @author Zhansan
*
* ${date}${time}
*/
${typecomment}
${type_declaration}
Two ways eclipse modifies the default author