File -> New -> Project
由于是快速入手 就不写具体代表什么了 直接下一步
我喜欢添加的。。。。 仅供参考 你可以直接下一步
完成
shift+ctrl+alt+s 修改如下
package com.example.demo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class SpringBootTest {
@RequestMapping("hello")
public String day(){
return "hello";
}
}
控制台