Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
ERROR 20184 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
由于pom文件里引用了数据库,没有使用到导致出错
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>3.0.0</version>
</dependency>
没用到的注掉即可