SpringBoot:UnsatisfiedDependencyException: Error creating bean with name ‘dataSource‘

created at 09-27-2021 views: 2

Springboot reports an error when the integrated druid is started.

Springboot:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘dataSource’

reason

Is the lack of jdbc-related jar packages,

solution

Include the spring-jdbc package

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-jdbc</artifactId>
</dependency>
Please log in to leave a comment.