11月14日

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

编写业务

@RestController
public class HelloController {


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


}

2.5、测试

直接运行main方法

 

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

原文地址:https://www.cnblogs.com/buyaoya-pingdao/p/14622777.html