教程
From Zero to Hero with Spring Boot - Brian Clozel
https://content.pivotal.io/springone-platform-2017/from-zero-to-hero-with-spring-boot-brian-clozel
源码
https://github.com/bclozel/issues-dashboard/
环境
java version “12” 2019-03-19
Java™ SE Runtime Environment (build 12+33)
Java HotSpot™ 64-Bit Server VM (build 12+33, mixed mode, sharing)
Eclipse IDE for Enterprise Java Developers.
Version: 2019-06 (4.12.0)
Build id: 20190614-1200
开工
1. 跑起来
在https://start.spring.io/下载demo
导入Eclipse
浏览器输入http://localhost:8080/
成功打开~
2.修改pom.xml
添加依赖
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId