0
点赞
收藏
分享

微信扫一扫

Failed to bind properties under 'spring.datasource.dynamic.hikari.min-idle' to java.lang.Integer

Failed to bind properties under 'spring.datasource.dynamic.datasource.hikari.min-idle' to java.lang.Integer:

1. 异常信息

Failed to bind properties under 'spring.datasource.dynamic.datasource.hikari.min-idle' to java.lang.Integer:

    Property: spring.datasource.dynamic.datasource.workorder.hikari.min-idle
    Value: ${{datasource.hikari.minIdle}
    Origin: class path resource [application.yml]:52:23
    Reason: failed to convert java.lang.String to java.lang.Integer

Action:

Update your application's configuration

Disconnected from the target VM, address: '127.0.0.1:53190', transport: 'socket'

2. 查看 datasource.hikari.minIdle=10

发现并没有超过Integer

3. ${{datasource.hikari.minIdle} 多写了一个{ 导致转换Integer 失败

所以删除多余的{

举报

相关推荐

0 条评论