Java规范化代码eclipse模板注释

版权声明:终身学习[https://blog.csdn.net/qq_36791569] https://blog.csdn.net/qq_36791569/article/details/81565448

建议下载阿里规范化插件

阿里的new java file的注释模板(Type):

/**
 * @author ${user}
 * @date ${currentDate:date('YYYY/MM/dd')}
 */


我的方法注释模板(method):
注意@see的格式是这样的:

@see com.mzy.mapper.UserMapper#login
@see classname
@see fully-qualified-classname
@see fully-qualified-classname#方法名称
@see fully-qualified-classname#属性名称

注意:后面的这个格式需要用{@link}来包裹,才能进行跳转

如:

    @see {@link com.mzy.crm.service.impl.CustomerServiceImpl#deleteCustomerById(Integer)}

如果是同一个类中,想要注释告诉阅读者跳转到本类中的其它方法,只用写#后就可以了!
 

/** 
* @Description 方法描述: ${todo}
* @see 
* @param 
* @return  返回值类型:   
* @author 作者: ${user}
* @time 时间: ${date} ${time} 
* @throws 
*/

 

猜你喜欢

转载自blog.csdn.net/qq_36791569/article/details/81565448