springboots Helloworld

Posted 小杉儿

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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.访问

以上是关于springboots Helloworld的主要内容,如果未能解决你的问题,请参考以下文章

springboot配置文件application-dev.properties,application-prod.properties,application-test.properties(代码片

springboot报错说 Failed to parse multipart servlet request; nested exception is java.io.IOException(代码片

SpringBoot MAVEN编译报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:(代码片

SpringBoot - Processing of multipart/form-data request failed. Unexpected EOF read on the socket(代码片

JavaWeb-SpringBoot2-HelloWorld

SpringBoot01——Framework Introduced and Helloworld