1.file->project->Spring Lnitializr ->
写一个controller
package com.yuanting.springbootquick.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class QuickController {
@ResponseBody
@RequestMapping("quick")
public String quickSpringboot(){
return "quick Spirngboot";
}
}