Skip to content

HikariDataSourceProvider.confKeyMapping error #10

@greenlaw110

Description

@greenlaw110

It shall map from solution (i.e. HikariCP) key to common key. The code is not correct:

    @Override
    public Map<String, String> confKeyMapping() {
        return C.map("url", "jdbcUrl",
                "maxConnections", "maximumPoolSize",
                "minimumIdle", "minConnections",
                "waitTimeout", "connectionTimeout"
        );
    }

Here jdbcUrl, maximumPoolSize and connectionTimeout are HiKariCP key. The correct code should be:

    @Override
    public Map<String, String> confKeyMapping() {
        return C.map("jdbcUrl", "url",
                "maximumPoolSize", "maxConnections",
                "minimumIdle", "minConnections",
                "connectionTimeout", "waitTimeout"
        );
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions