Open wuchangrong opened 1 year ago
Failed to bind properties under 'spring.datasource.type' to java.lang.Class:
Property: spring.datasource.type Value: org.apache.tomcat.jdbc.pool.DataSource Origin: class path resource [application.properties] - 25:24 Reason: failed to convert java.lang.String to java.lang.Class<javax.sql.DataSource> (caused by java.lang.ClassNotFoundException: org.apache.tomcat.jdbc.pool.DataSource)
我也是这个情况,我增加了一个依赖
<dependency> <groupId>org.apache.tomcat</groupId> <artifactId>tomcat-jdbc</artifactId> <version>11.0.0-M17</version> </dependency>
Failed to bind properties under 'spring.datasource.type' to java.lang.Class: