Java 开发者常用工具

1. Java 开发环境

下载地址

2. Maven 镜像管理

下载地址

配置设置

常用的几个其他setting.xml文件配置:
# 本地包仓库,设置maven本地仓库路径
<localRepository>E:/Java/maven/apache-maven-3.6.3/repository</localRepository>

# 镜像
<mirror>
    <id>aliyunmaven</id>
    <mirrorOf>*</mirrorOf>
    <name>阿里云公共仓库</name>
    <url>https://maven.aliyun.com/repository/public</url>
</mirror>

3. Git 版本控制

下载地址

设置&常见问题

  • 设置全局账号信息

    # global 指全局设置,如果需要为某个项目单独设置,需要在项目目录下使用 git-cmd 进行操作
    # 提交代码时会显示的提交人的名字和邮箱(也会作为提交用户提交到远程)
    git config --global user.name "用户名"
    git config --global user.email "邮箱地址"
    # 非必须,一般来说都需要验证密码
    git config --global user.password "账户密码"
    
  • 私有仓库,独立授权

    拉取代码需要注意,公司一般都会使用自己搭建的仓库,所以ideaversion controlgituse credential helper一定要勾选,勾选之后才会要求你输入账号密码。

  • 解决fatal: unsafe repository

    更换电脑、更换用户、项目更换文件夹等均可能导致无法拉取代码,问题的原因便是Git拥有安全更新限制。解决办法也十分简单,设置Git安全目录即可。以下是两种设置方式,可按需选择:

    1. 方法一,设置全局例外:git config --global --add safe.directory
    2. 方法二,设置指定目录:git config --global --add safe.directory 盘:/Projects/项目目录

    详细了解可参考以下文章:

4. Visual Studio Code

下载地址

5. IntelliJ IDEA

下载地址

6. 数据库可视化工具

7. Redis 可视化工具

Another Redis Desktop Manager