您当前的位置: 首页 >  ar

Binding to target org.springframework.boot.autoconfigure.jdbc.DataSourceProperties@46c3a14d failed:

发布时间:2018-01-08 17:47:41 ,浏览量:0

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.

2018-01-03 10:52:46.766 ERROR 2513 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************

APPLICATION FAILED TO START

***************************

Description:

Binding to target org.springframework.boot.autoconfigure.jdbc.DataSourceProperties@46c3a14d failed:

    Property: spring.datasource.type

    Value: com.mysql.jdbc.Driver

    Reason: Failed to convert property value of type 'java.lang.String' to required type 'java.lang.Class' for property 'type'; nested exception is java.lang.IllegalArgumentException: Cannot find class [com.mysql.jdbc.Driver]

Action:

Update your application's configuration

错误原因:

配置文件中的 spring.datasource.type 配置错误。

解决方法参考:

Cannot determine embedded database driver class for database type NONE

关注
打赏
1688896170
查看更多评论

暂无认证

  • 0浏览

    0关注

    106156博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.0840s