springboots Helloworld

1.eclipse gradle 插件

  HELP----MarketPlace----搜索 buildship点击安装

  WINDOW----preferences--gradle 配置安装好的gradle

2.引入demo工程

3.HelloWorldController 

package com.song.spring.boot.blog.springboot1.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @RequestMapping("hello")
    public String hello() {
        return "Hello WORLD";
    }

}

4.访问

posted @ 2018-07-11 17:34  木头爹  阅读(133)  评论(0编辑  收藏  举报