新版idea创建springboot项目,测试日期2022.5.17
package com.example.study;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@RequestMapping("/hello")
public class HelloController {
@RequestMapping("/01")
@ResponseBody
public String hello01(){
return "hello springboot";
}
}
默认是8080端口