springboot (一) hello world

作者: IT人故事会 | 来源:发表于2018-04-19 10:25 被阅读97次

    新建Spring Initializr项

    2. 填写项目信息,项目名称,包名,组织公司名,打包方式,JDK编译版本。

    3. 选择项目使用技术。

    4. 确认项目名称和工程路径。

    5. 完成项目的创建。项目架构如图:

    6. 创建控制层,编写逻辑,测试运行。

    @RestController

    publicclassIndexController{

    @RequestMapping("/")

    String index() {

    return"Hello World!";

    }

    }

    相关文章

      网友评论

      本文标题:springboot (一) hello world

      本文链接:https://www.haomeiwen.com/subject/nlgikftx.html