Window --> Preferences --> Java --> Code Style --> Code Templates --> Comments --> types --> Edit
按需要设置,最后要勾选Automatically add comments for new methods and types.