快速创建一个springboot项目

xiaoxiao2025-07-23  28

  本文主要介绍使用spring官方网站快速生成springboot脚手架

1.打开网站  https://start.spring.io

2.填写项目信息以及maven依赖(添加web,devtools依赖即可)

3.解压生成的zip文件,然后在idea或者eclipse中导入项目

新建HelloController类,然后启动DemoApplication中的main方法,如果不配置项目端口,springboot项目启动的默认端口是8080 

如需修改,可在applcation.properties配置文件中修改,至此,springboot项目启动成功

4.打开游览器访问 http://localhost:8080/hello

转载请注明原文地址: https://www.6miu.com/read-5033573.html

最新回复(0)