其他分享
首页 > 其他分享> > NoClassDefFoundError: org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseType

NoClassDefFoundError: org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseType

作者:互联网

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘spring.datasource-org.springframework.boot.autoconfigure.jdbc.DataSourceProperties’: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.autoconfigure.jdbc.DataSourceProperties]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseType

springboot启动报错原因:使用了druid连接池,但是缺少spring-boot-starter-jdbc的依赖。

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-jdbc</artifactId>
        </dependency>

标签:exception,jdbc,embedded,spring,NoClassDefFoundError,boot,springframework,org
来源: https://blog.csdn.net/qq_44300280/article/details/123307201