java开发常用工具DIY改造整理

全新系统搭建JAVA开发环境的自有套路整理,仅仅个人操作习惯整理而来,勿上纲上线

IDE 篇之 InteliJ IDEA DIY区

主要整理一些idea常用的自定义功能

安装Solarized主题


Live Template

经常使用的template:

  • log日志template,声称lsf4j的log. 快捷键:log
private final static Logger logger = LoggerFactory.getLogger($CLASS$.class);
  • 静态int类型变量申明.快捷键sfi
public static final int $NAME$ = $VALUE$
  • 静态String类型变量申明,快捷键sfs
public static final String $NAME$ = "$VALUE$"

File and Code Template

  • 自定义头:
/**
 * @author yoqu
 * @date ${YEAR}年${MONTH}月${DAY}
 * @time ${TIME}
 * @email wcjiang2@iflyte.com
 */

maven篇之使用国内的镜像仓库

  1. 打开maven项目的conf目录中的setting.xml文件,在第140多行出添加如下配置文件
  <mirrors>
    <!-- mirror
     | Specifies a repository mirror site to use instead of a given repository. The repository that
     | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
     | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
     |
    <mirror>
      <id>mirrorId</id>
      <mirrorOf>repositoryId</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
      <url>http://my.repository.com/repo/path</url>
    </mirror>
     -->
      <mirror>
          <id>nexus-aliyun</id>
          <mirrorOf>*</mirrorOf>
          <name>Nexus aliyun</name>
          <url>http://maven.aliyun.com/nexus/content/groups/public</url>
      </mirror>
  </mirrors>

贴的代码中主要是中间的aliyun地址,其他的保持不变

gradle构建工具自定义

//todo

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 135,672评论 19 139
  • maven下的配置,用maven构建项目的工程都可以用,我用的IDEA 在maven的config下找到setti...
    世外大帝阅读 5,014评论 0 2
  • 我jdk版本是1.7.0_95,在网上查了一下1.7属于java7maven3.3+版本都支持java7,所以我使...
    liangxifeng833阅读 5,048评论 0 2
  • Maven setting中私有仓库配置浅析 最近遇到过不少这样那样的问题,曾经做过maven的分享,但是发现当时...
    happut阅读 20,012评论 0 4
  • 眉月弯弯月儿瘦。星两朵,云暗斗。剪烛西窗话未够。过江燕远。穿林风透。一缕香魂走。 菊黄蟹肥正时候,载将离愁化碧酒。...
    梅心梅飞阅读 4,168评论 5 15