解决 springboot 启动报错 -- Cannot determine embedded database driver class for database type NONE

1. 问题描述

我只是新建一个全新的 springboot 工程,什么都没有写的情况下启动报错如题:

Cannot determine embedded database driver class for database type NONE


2. 原因

经确认是我的 pom.xml 中引用了一些现在还没有真正用到的 jar 包。

   <!--redis-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-redis</artifactId>
            <version>1.5.6.RELEASE</version>
        </dependency>

        <!--Mybatis-->
        <dependency>
            <groupId>org.mybatis.spring.boot</groupId>
            <artifactId>mybatis-spring-boot-starter</artifactId>
            <version>1.3.1</version>
        </dependency>

        <!--long3-->
        <dependency>
            <groupId>org.kie.modules</groupId>
            <artifactId>org-apache-commons-lang3</artifactId>
            <version>6.4.0.Beta2</version>
            <type>pom</type>
        </dependency>


3. 解决

直接注释掉这些引用,重启工程成功。

猜你喜欢

转载自blog.csdn.net/u011314442/article/details/80938577