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";
}
}