创建完成

 

 启动效果如图:

项目启动成功........

 

已正常访问........

编写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...........

posted on 2019-06-26 11:06  大白&Kitty  阅读(852)  评论(0编辑  收藏  举报