一、创建Spring-boot
Democontroller
package com.example.demo.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class Democontroller {
@RequestMapping(value = "hi")
public String sayHi()
{
return "hello Spring boot";
}
}