Java Downloads | Oracle
Maven – Download Apache Maven
Eclipse Downloads | The Eclipse Foundation
奇技淫巧:在spring官网上下载历史版本的spring插件,springsource-tool-suite_吴小破的博客-CSDN博客
- 安装路径不要有中文(如:D:Javajdk-17.0.1;D:Springapache-maven-3.8.3)
- 注意版本匹配
配置 环境变量
控制面板系统和安全系统,高级系统设置~高级~环境变量
JAVA_HOME:D:Javajdk-17.0.1
M2_HOME:D:Springapache-maven-3.8.3
MAVEN_HOME:D:Springapache-maven-3.8.3
Path:%JAVA_HOME%bin;%JAVA_HOME%jrebin;
classpath: .;%JAVA_HOME%libdt.jar;%JAVA_HOME%libtools.jar;
- cmd输入java -version mvn -version,若显示详细信息,则配置成功
D:Springapache-maven-3.8.3conf,以notepad++打开setting.xml
替换为:(注意D:SpringMaven须变换)
STSD:SpringMaven alimaven aliyun maven http://maven.aliyun.com/nexus/content/groups/public/ central
help>Install new software>add
Eclipse中搭建SpringBoot项目,使用sts(springsource-tool-suite)插件_千里之行,始于足下!-CSDN博客
windows>preferences
- 出现Spring即为安装成功
Eclipse搭建SpringBoot之HelloWorld_天堂地址不详-CSDN博客
File>new>ther>starter web
新建一个Controller
package com.example.demo; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class HelloController { @RequestMapping("/") public String hello(){ return "Welcome to start SpringBoot!"; } }
run:spring boot app
http://localhost:8080/
SpringBoot报错:Web server failed to start. Port 8080 was already in use._陈暗暗的博客-CSDN博客
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)