一、需要的安装包
1.1 java JDK
1.png
- 安装
在D盘新建java文件夹,在此目录下新建jdk及jre文件夹
然后双击下载后的jdk-16.0.2_windows-x64_bin.exe文件,按照提示将相应的安装地址修改为java/jdk及java/jre,然后一直下一步,最后就成功了,随便打开一个cmd,输入java -version 有文字出现就对了
2.png
笔者写的比较简单,详细可以查看此链接
1.2 maven
image.png
解压后放在文件夹内就可以了,设置环境变量,编辑Path,安装就结束了
image.png
image.png
新建一个文件夹repository,用来装maven下载的jar包
打开maven文件夹下的settings.xml文件\apache-maven-3.8.1\conf\settings.xml
安装下方截图修改
image.png
image.png
文字版
<localRepository>D:\develop\repository</localRepository>
<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>maven-default-http-blocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
<url>http://0.0.0.0/</url>
<blocked>true</blocked>
</mirror>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
</mirrors>
综上maven完事了
1.3 tomcat
image.png
image.png
解压、配置一下环境变量,放到Path
image.png
综上tomcat完事了
1.4 mysql
image.png
下载下来解压版本,安装快
image.png
image.png
image.png
参考文章-菜鸟教程
综上,安装完毕,修改密码啥的可以等到安装完Navicat在修改
1.5 STS
下载地址
下载后解压双击exe就可以用了,新建一个文件夹,作为项目空间
image.png
1.6 Navicat Premium 15
网上搜索下载,支持正版,具体使用自行百度就可以了
以上就是后端项目初始的工具及环境配置来了