The reason 1: pom.xml configuration lacks version
Error:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-cache</artifactId>
</dependency>
Amendment:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-cache</artifactId>
<version>2.1.6.RELEASE</version>
</dependency>
Other cases may refer to:
SpringBoot 2.0 报错: Failed to configure a DataSource: 'url' attribute is not specified and no embe... https://www.jianshu.com/p/836d455663da
Common learning and common progress, if any supplement, please point out, thank you!