Fix a bug in ConfigWrapper.
This commit is contained in:
parent
f3d95955c0
commit
f4d0289eab
@ -36,7 +36,7 @@ public class ConfigWrapper {
|
|||||||
|
|
||||||
return null }
|
return null }
|
||||||
|
|
||||||
public String getHikariConfig() {
|
public HikariConfig getHikariConfig() {
|
||||||
Properties props = new Properties()
|
Properties props = new Properties()
|
||||||
|
|
||||||
// 1. Check config properties for database config file
|
// 1. Check config properties for database config file
|
||||||
@ -71,7 +71,7 @@ public class ConfigWrapper {
|
|||||||
private boolean tryLoadConfigFile(File configFile) {
|
private boolean tryLoadConfigFile(File configFile) {
|
||||||
if (!configFile.exists() || !configFile.isFile()) return false
|
if (!configFile.exists() || !configFile.isFile()) return false
|
||||||
|
|
||||||
return configFile.withInputStream { tryLoadConfig(is) } }
|
return configFile.withInputStream { tryLoadConfig(it) } }
|
||||||
|
|
||||||
private boolean tryLoadConfig(InputStream is) {
|
private boolean tryLoadConfig(InputStream is) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user