快速创建

利用IDEA提供的Spring Initializr创建SpringBoot应用

Untitled

Untitled

Untitled

最后运行即可:~

Untitled

项目热部署

  1. 导入依赖文件
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional>
</dependency>
  1. 配置自动编译

Untitled

  1. 配置允许自动编译

Untitled