创建完成
启动效果如图:
项目启动成功........
已正常访问........
编写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 @ResponseBody10 public String init(){11 return "hi,springboot";12 }13 }
OK...........