1 安装JDK
下载并解压jdk-8u45-windows-x64.zip
将JDK、JRE安装在指定目录如D:\Program Files\Java
配置环境变量:
计算机-属性-高级系统设置-高级-环境变量-系统变量
新增:
JAVA_HOME D:\Java\jdk1.8.0_45
CLASSPATH .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar
path编辑:
在最后增加;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;
验证:
打开cmd命令行 输入java -version 回车
2 安装Maven
下载并解压apache-maven-3.6.0-bin.zip至指定目录如E:\work\apache-maven-3.6.0
新建系统变量MAVEN_HOME,赋值E:\work\apache-maven-3.6.0
path编辑:
在最后增加;%MAVEN_HOME%\bin;
验证:
打开cmd命令行 输入mvn -version 回车
替换E:\work\apache-maven-3.6.0\conf\settings.xml
3 在eclipse或idea中配置jdk和maven
https://jingyan.baidu.com/article/d45ad148880ca769552b8009.html
https://www.cnblogs.com/pengyan-9826/p/7767070.html
4创建工程
https://www.cnblogs.com/smivico/p/6256313.html
https://www.cnblogs.com/txsblog/p/8566416.html
4导入工程
https://jingyan.baidu.com/article/597a0643442a0d312b524331.html
错误信息
Unrecognized Windows Sockets error: 10106: create
Several ports (8005, 8080, 8009) required by Tomcat v7.0 Server at localhost are already in use.
The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).
解决方案: 1,以管理员身份打开命令提示符
2,输入 netsh winsock reset
3,重启电脑就ok了
https://blog.csdn.net/github_39577257/article/details/81842234