# 后端开发配置

# 操作系统

本地开发要求使用 windows 10 专业版或企业版作为操作系统.

推荐使用 Windows 10 LTSC 1809 作为操作系统, 此版本为纯净版本, 无其他无用内置程序.

或者使用 Windows 10 2004 及以上版本配合 wsl2 进行多系统的开发.

# 开发工具

适用性 名称 备注
必须 V2RayN (opens new window) 科学上网
必须 JDK 1.8, 建议使用 Amazon Corretto 8 (opens new window) JDK 与环境变量配置
必须 git (opens new window) 版本管理
必须 IDEA 主力 IDE
必须 maven 使用 IDEA 自带 maven, 配置阿里云 maven 中央仓库
必须 docker (opens new window) 容器服务
必须 MySQL 推荐使用 docker 容器进行安装
必须 navicat 数据库管理工具
必须 MindManager 思维导图
必须 xshell, xftp 远程连接工具与上传工具

# IDEA 插件与配置

适用性 插件名称 介绍
必须 lombok 常用注解方便开发
必须 alibaba java coding guidelines 阿里巴巴代码标准检查
必须 sonarlint 用于针对需要进行代码标准检查

# git 配置与使用

# 公司代码仓库地址

http://81.71.18.142:30300/signp (opens new window)

# ssh key 生成方法

#在本地查看email地址
$ git config --list
#如果没有,需要设置 git 用户名与邮箱
$ git config --global user.name test123
$ git config --global user.email test123@qq.com
# 设置换行符为 LF
git config --global core.autocrlf input
git config --global core.eol lf
# 设置 git 对文件名大小写敏感
git config --global core.ignorecase false
#在本地根目录生成公钥, 输入自己的邮箱
$ cd
$ ssh-keygen -t rsa -C test123@qq.com

复制生成的公钥 id_rsa.pub 至个人设置 SSH 密钥处或者服务器 ~/.ssh/authorized_keys 文件中.

# 使用前须知

  1. 管理员会提供登录使用的 Gitea 账号密码
  2. 复制本地 ssh key 至 Gitea 账号中 ssh
  3. git clone 代码仓库至本地 git clone

如上图所示, 复制项目 git ssh 地址, 在项目目录下打开命令行, 输入

git clone ssh://git@XXXXXXXXX.git

# docker 配置

docker 安装教程 (opens new window)

docker 学习视频 (opens new window)

上次更新时间: 2021年8月23日 15:56