STS-设置代码注释模板

  1. 准备好注释模板文件codetemplate.xml

  1. 导入到STS中(选中文件,导入即可)


    STS-设置代码注释模板_第1张图片
    image.png
  2. 效果
package cn.panzhijie.template.springcloud.eureka.a;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

/**
 * @ClassName: PanzhijieTemplateSpringcloudEurekaAApplication
 * @Description: Eureka服务发现
 * @Author panzhijie
 * @DateTime Sep 23, 2018 10:14:54 AM
 */
@EnableEurekaServer
@SpringBootApplication
public class PanzhijieTemplateSpringcloudEurekaAApplication {

    /**
     * @Title: main
     * @Description: Springboot启动主方法
     * @Author panzhijie
     * @DateTime Sep 23, 2018 10:16:31 AM
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication.run(PanzhijieTemplateSpringcloudEurekaAApplication.class, args);
    }
}

你可能感兴趣的:(STS-设置代码注释模板)