new-project

idea中搭建springboot学习(1) ---hello springboot项目

idea中搭建springboot学习(1) ---hello springboot项目

 

idea中搭建springboot学习(1) ---hello springboot项目

idea中搭建springboot学习(1) ---hello springboot项目

点击finish即可

新建TestController类

package com.example.demo.demo1017;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestController {

    @RequestMapping("/hello")
    @ResponseBody
    public String hello(){
        return "hello springboot!";
    }

}

 点击DemoApplication运行项目即可

idea中搭建springboot学习(1) ---hello springboot项目

idea中搭建springboot学习(1) ---hello springboot项目 

 

相关文章:

  • 2021-05-29
  • 2022-01-19
  • 2021-11-28
  • 2021-07-06
  • 2021-08-18
  • 2022-12-23
  • 2021-08-31
  • 2021-07-29
猜你喜欢
  • 2021-04-05
  • 2021-05-22
  • 2021-09-15
  • 2021-12-27
  • 2021-05-02
  • 2021-05-31
相关资源
相似解决方案