您当前的位置: 首页 >  Java

暂无认证

  • 0浏览

    0关注

    101061博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

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

发布时间:2018-07-03 15:12:25 ,浏览量:0

刚创建的 Spring Boot 2.0 项目,启动后输出:

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]:5:24
    Reason: No converter found capable of converting from type [java.lang.String] to type [java.lang.Class]

Action:

Update your application's configuration

1.5 的项目可以使用

spring.datasource.type=org.apache.tomcat.jdbc.pool.DataSource

但2.0 却不行,那就把它删除,默认配置为:

tomcat-jdbc

关注
打赏
1655516835
查看更多评论
立即登录/注册

微信扫码登录

0.4141s