Skip to content

Win系统初始化

更新: 2/10/2025 字数: 0 字 时长: 0 分钟

1、软件安装

开发工具

类别软件名称访问地址
代码版本控制Githttps://git-scm.com/downloads
开发工具Java SE 8https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html
开发工具Java SE 17https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html
开发工具Mavenhttps://maven.apache.org/download.cgi
开发工具nvm (NodeJs)https://nvm.uihtm.com/ https://nodejs.org/zh-cn https://github.com/coreybutler/nvm-windows/releases
开发工具Visual Studio Codehttps://code.visualstudio.com/Download
开发工具Ideahttps://www.jetbrains.com/zh-cn/idea/download/?section=windows
浏览器chromehttps://www.google.com/chrome/ https://chrome.bjjuxiao.cn/
开发工具MySQLhttps://dev.mysql.com/downloads/mysql/
开发工具Redis-windowshttps://github.com/tporadowski/redis / https://github.com/redis-windows/redis-windows/releases

常用软件

类别软件名称访问地址
操作系统Windows10https://www.microsoft.com/zh-cn/software-download/windows10
操作系统Windows11https://www.microsoft.com/zh-cn/windows
终端工具Windows Terminalhttps://apps.microsoft.com/detail/9n0dx20hk701?rtc=1&hl=zh-cn&gl=CN
效率工具uToolshttps://u.tools/download
搜索文件Everythinghttps://www.voidtools.com/zh-cn/downloads/
截图神器Snipastehttps://zh.snipaste.com/download.html
科学上网Clash for Windowshttps://ikuuu.one
接口调试ApiFoxhttps://apifox.com
手势软件WGestures 2https://www.yingdev.com/projects/wgestures2
视频播放PotPlayerhttps://potplayer.tv/?lang=zh_CN
解压缩软件BandZip、WinRAR 、7-ziphttps://www.bandisoft.com/bandizip https://www.rarlab.com/ https://www.7-zip.org/
文本编辑Notepad++https://notepad-plus-plus.org
文本编辑Markdown Editorhttps://www.marktext.cc https://typoraio.cn https://editor.mdnice.com
素材管理Eaglehttps://eagle.cool/
办公软件WPShttps://platform.wps.cn
文件搜索Everythinghttps://www.voidtools.com/zh-cn/

其他软件

类别软件名称访问地址
软件卸载GeekUninstallerhttps://geekuninstaller.com/

2、环境配置

shell
## 在系统上禁止使用脚本解决方法 | 以管理员身份运行power shell
set-executionpolicy remotesigned

## 密钥生成
ssh-keygen -t rsa -b 4096 -C "zhanghaijun_java@163.com"
## Git配置
git config --global --list
git config --global user.name "zhanghaijun"
git config --global user.email "zhanghaijun_java@163.com"
git config --global core.ignorecase false

## nodejs配置
npm install -g yrm --registry https://registry.npmmirror.com
yrm del taobao
yrm add taobao https://registry.npmmirror.com
yrm use taobao
npm install -g pnpm --registry https://registry.npmmirror.com

3、Maven配置

settings.xml

xml
<?xml version="1.0" encoding="UTF-8"?>

<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">

  <localRepository>C:\\develop\\maven\\maven-local</localRepository>

  <mirrors>
    <!-- 阿里云镜像 -->
    <mirror>
      <id>aliyun-mirror</id>
      <mirrorOf>central,jcenter,!rdc-releases,!rdc-snapshots</mirrorOf>
      <name>阿里云公共仓库</name>
      <url>https://maven.aliyun.com/repository/public</url>
    </mirror>
    <!-- 华为云镜像 -->
    <mirror>
      <id>huawei-mirror</id>
      <mirrorOf>central</mirrorOf>
      <name>huawei nexus</name>
      <url>https://mirrors.huaweicloud.com/repository/maven</url>
    </mirror>
    <!-- 仓库官方-->
    <mirror>
      <id>nexus</id>
      <name>internal nexus repository</name>
      <mirrorOf>central</mirrorOf>
      <url>http://repo.maven.apache.org/maven2</url>
    </mirror>
  </mirrors>
</settings>

4、Idea配置

1、配置JDKMaven

2、配置编码:settings->Editor->File Encodings 调整为 UTF-8

3、插件安装:LombokMyBatisXMermaidSonarQube fro IDEKey Promoter XMaven HelperBookmarkRainbow Brackets

4、idea配置注释模板:settings->Editor->File and Code Templates->files->class

java
/**
 * 【说明类功能】
 *
 * @author ${USER}
 * @since ${DATE}
 */
public class ClassName {
}
java
/**
 * 【接口功能说明】
 *
 * @author ${USER}
 * @since ${DATE}
 */
public interface InterfaceName {
}
java
/**
 * 【枚举功能说明】
 *
 * @author ${USER}
 * @since ${DATE}
 */
public enum EnumName {
}
java
/**
 * 【记录功能说明】
 * <简要描述该记录的作用,例如:用于表示一个用户信息>
 *
 * @author ${USER}
 * @since ${DATE}
 */
public record RecordName(String name, int age) {
}
java
/**
 * 【注解功能说明】
 * <简要描述该注解的作用,例如:用于标记方法需要缓存、标识某个字段的约束等>
 *
 * @author ${USER}
 * @since ${DATE}
 */
public @interface AnnotationName {
}
text
# Help->Edit Custom VM Options...

-Duser.name=haijun.zhang