From 4b26f97383dc202e9dd6ff1206b9fb7f61cf6e6a Mon Sep 17 00:00:00 2001 From: Crystal Liang Date: Tue, 27 Jun 2023 11:01:12 -0700 Subject: [PATCH] docs: correct portNumber to serverPort in Hikari example --- .../src/main/java/software/amazon/HikariFailoverExample.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/HikariExample/src/main/java/software/amazon/HikariFailoverExample.java b/examples/HikariExample/src/main/java/software/amazon/HikariFailoverExample.java index 3d6d141dc..d1ce43c12 100644 --- a/examples/HikariExample/src/main/java/software/amazon/HikariFailoverExample.java +++ b/examples/HikariExample/src/main/java/software/amazon/HikariFailoverExample.java @@ -47,7 +47,7 @@ public static void main(String[] args) throws SQLException { // Configure AwsWrapperDataSource: ds.addDataSourceProperty("jdbcProtocol", "jdbc:postgresql:"); ds.addDataSourceProperty("serverName", ENDPOINT); - ds.addDataSourceProperty("portNumber", "5432"); + ds.addDataSourceProperty("serverPort", "5432"); ds.addDataSourceProperty("database", DATABASE_NAME); // The failover plugin throws failover-related exceptions that need to be handled explicitly by HikariCP,