IntelliJ IDEA 开发Spring-Boot之Hello World
来源:互联网 发布:微信怎么没有网络 编辑:程序博客网 时间:2024/06/08 16:51
最近初试Spring Boot,下面简单描述IntelliJ IDEA下开发一个简单的SpringBoot的Hello World项目
一、创建项目:
之后,填写项目名称和位置,点击完成
二、 项目结构如下:
创建一个Controller类:IndexController
package com.diviner.springboot.controller;import org.springframework.boot.autoconfigure.EnableAutoConfiguration;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RestController;/** * @Author: SQQ * @Date: 2017/9/22 * @Email: 815774079@qq.com * @CreateTime 2017/9/22 16:15 * @License: Diviner * @Copyright: Diviner */@RestController@EnableAutoConfigurationpublic class IndexController { @RequestMapping("index") public String index() { System.out.println("进入Controller……"); return "Hello Spring-Boot"; }}
显示结果则 表示成功!
至此,SpringBoot的HelloWorld项目完成
阅读全文
0 0
- IntelliJ IDEA 开发Spring-Boot之Hello World
- spring boot 入门(一):IntelliJ IDEA 实现hello world
- IntelliJ IDEA 创建spring boot 的Hello World 项目
- intellij idea Spring MVC 学习之Hello World
- 使用Intellij IDEA编写Spring Hello World
- 1.1 使用IntelliJ IDEA搭建Spring-Boot的"Hello World"项目
- spring boot 之 hello world !
- Spring Boot 之Hello World
- spring boot之Hello World
- Spring Boot之Hello World
- spring-boot 之 Hello World
- Spring Boot之Hello World
- spring Boot学习入门篇-idea开发简单的hello world实例
- Intellij Idea maven hello world
- Spring Boot快速入门之Hello World
- 第一章 Spring Boot 之Hello World
- Spring boot之hello world(一)
- 1、spring boot之Hello world
- RegExp
- CentOS7 安装git和gitosis
- 手动将本地jar添加到Maven仓库
- ie6下几种bug的解决方式
- python re模块的用法以及正则表达式
- IntelliJ IDEA 开发Spring-Boot之Hello World
- vue小笔记 解决build 相对路径报错问题和静态图片路径报错的问题
- 文章标题
- 求n^n第一位数 数学
- 代码整洁之道
- maven骨架位置
- history.go(-1)和History.back()的区别
- leveldb:合并之DoCompactionWork(多文件间的合并)
- Unity3D游戏暂停UI动画继续播放