用IDEA快速创建一个springboot项目步骤如图: 看下SDK是否正确 注意这里是jdk8 默认是11 新建一个包编写controller 出现这个就是好了 在网页输入;localhost:8080/hello