11月14日

  写spring的工程,需要引入依赖,然后直接编写程序,不需要页面来,直接做后端的请求

 

 

编写业务

@RestController
public class HelloController {


    @RequestMapping("/hello")
    public String handle01(){
        return "Hello, Spring Boot 2!";
    }


}

2.5、测试

直接运行main方法

 

学习时间:17:23到21:46

posted @ 2021-11-14 22:20  不咬牙  阅读(26)  评论(0编辑  收藏  举报