一、创建步骤
二、创建完成后的界面
三、controller
package com.william.day01_springboot_initializr.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author :lijunxuan
* @date :Created in 2019/6/27 17:20
* @description :
* @version: 1.0
*/
@RestController
public class HelloController {
@RequestMapping("/hello")
public String hello(){
return "hello world!";
}
}
四、运行结果
六、热部署的配置
(1)在pom文件中导入依赖
<!--spring boot开发工具包-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>