Failed to bind properties under ‘spring.datasource.type‘ to java.lang.Class<javax.sql.Data

Failed to bind properties under ‘spring.datasource.type‘ to java.lang.Class<javax.sql.Data,第1张

Failed to bind properties under ‘spring.datasource.type‘ to java.lang.Class<javax.sql.Data


Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-11-10 11:03:50.498 ERROR 2844 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to bind properties under 'spring.datasource.type' to java.lang.Class:

    Property: spring.datasource.type
    Value: com.alibaba.druid.pool.DruidDataSource
    Origin: class path resource [config/application-dev.yml]:12:11
    Reason: No converter found capable of converting from type [java.lang.String] to type [java.lang.Class]

Action:

Update your application's configuration

我的依赖里面是没有com.alibaba.druid.pool.DruidDataSource

 在pom文件中添加连接池依赖

 

 已经导入进来了

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5438404.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-11
下一篇2022-12-11

发表评论

登录后才能评论

评论列表(0条)

    保存