首页 > 编程语言 > 详细

idea新建springboot项目

时间:2019-12-31 16:29:59      阅读:90      评论:0      收藏:0      [点我收藏+]

一、新建springboot项目

点击 文件--New--项目

技术分享图片

 

 

 选择Spring Initializr

技术分享图片

 

 

 下一步

技术分享图片

 

 按照上面的或者直接下一步

技术分享图片

 

 下一步

技术分享图片

 

 点击完成

 

 

 二、启动项目

建立一个类

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Test {

    @RequestMapping("/hello")
    public String helloSpringBoot() {
        return "Hello SpringBoot Project.";
    }
}

点击绿色箭头运行

技术分享图片

 

 打开网页输入http://localhost:8080/hello

技术分享图片

idea新建springboot项目

原文:https://www.cnblogs.com/rumian/p/12124817.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!