关于required a bean of type ‘javax.sql.DataSource‘ that could not be found.这件事
这个问题,可能我跟大家的问题不太一样,首先,先看下pom,我的是这个<dependency><groupId>org.springframework</groupId><artifactId>spring-jdbc</artifactId><version>5.3.2</version></depe..
·
这个问题,可能我跟大家的问题不太一样,首先,先看下pom,我的是这个
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>5.3.2</version>
</dependency>
换成下面这个就好了
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
更多推荐
所有评论(0)