1.首先是下载idea,然后安装好
2.获取注册码
参考了这个:https://blog.csdn.net/m0_37721946/article/details/101441167
3.新建一个spring boot项目并测试通过
参考文章是这个:https://blog.csdn.net/whu_jack/article/details/79986332
看到有人说:idea里的project就是eclipse里的workspace,idea里的module就是eclipse里的project,不知道这么说对不对
最后测试的时候,地址是:http://localhost:8080/get
controller这么写的
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class TestController {
@RequestMapping("/get")
public String get(){
return "HELLO";
}
}
1万+

被折叠的 条评论
为什么被折叠?



