xuxueli / xxl-conf

A lightweight distributed configuration management platform. (分布式配置管理平台XXL-CONF)
http://www.xuxueli.com/xxl-conf/
GNU General Public License v3.0
666 stars 371 forks source link

IDEA启动报错 failed to convert java.lang.String to java.lang.Class<javax.sql.DataSource>, 请问要改什么配置 #96

Open wuchangrong opened 1 year ago

wuchangrong commented 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)
wu199pain commented 6 months ago

我也是这个情况,我增加了一个依赖

    <dependency>
        <groupId>org.apache.tomcat</groupId>
        <artifactId>tomcat-jdbc</artifactId>
        <version>11.0.0-M17</version>
    </dependency>