



創建完成

啟動效果如圖:

項目啟動成功........

已正常訪問........
編寫controller查看前后端交互信息........

1 import org.springframework.stereotype.Controller; 2 import org.springframework.web.bind.annotation.RequestMapping; 3 import org.springframework.web.bind.annotation.ResponseBody; 4 5 @Controller 6 public class StuController { 7 8 @RequestMapping("/start") 9 @ResponseBody 10 public String init(){ 11 return "hi,springboot"; 12 } 13 }

OK...........
