Reason: No converter found capable of converting from type [java.lang.String] to type

spring boot 2.1.X
jdk 1.8

问题

Failed to bind properties under ‘spring.datasource.type’ to java.lang.Class<javax.sql.DataSource>:

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-08-11 05:34:00.135 ERROR 11032 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

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

Description:

Failed to bind properties under 'spring.datasource.type' to java.lang.Class<javax.sql.DataSource>:

    Property: spring.datasource.type
    Value: com.alibaba.druid.pool.DruidDataSource
    Origin: "spring.datasource.type" from property source "bootstrapProperties"
    Reason: No converter found capable of converting from type [java.lang.String] to type [java.lang.Class<javax.sql.DataSource>]

Action:

Update your application's configuration

原因

未知

解决

排查:域名配置是否正确;应用的包名;application配置看看

发布了83 篇原创文章 · 获赞 24 · 访问量 7万+

猜你喜欢

转载自blog.csdn.net/u010638673/article/details/99158253