From 0fc6ec5c8ff75ca3618be94c77d849a6f6267851 Mon Sep 17 00:00:00 2001 From: Eric Kramer Date: Wed, 7 Sep 2016 12:08:39 -0400 Subject: [PATCH] Helpful clarification on .properties location (#712) The leading slash (which causes the search to start at the root of the classpath) is essential in most cases-rarely would db config be bundled alongside the class of interest in the package structure--I think this clarification in the example will help novices to HikariCP (like me). --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2af59fb8..9b9437b9 100644 --- a/README.md +++ b/README.md @@ -344,7 +344,8 @@ ds.setPassword("51mp50n"); ``` or property file based: ```java -HikariConfig config = new HikariConfig("some/path/hikari.properties"); +// Examines both filesystem and classpath for .properties file +HikariConfig config = new HikariConfig("/some/path/hikari.properties"); HikariDataSource ds = new HikariDataSource(config); ``` Example property file: