private void initProperties(String filePropertiesName){
  readFromClassPath(filePropertiesName);
  Path curDirPath=getFileInCurrentDir(filePropertiesName);
  if (Files.exists(curDirPath)) {
    try (InputStream curFolder=Files.newInputStream(curDirPath)){
      if (curFolder != null) {
        load(curFolder);
      }
    }
 catch (    Exception e) {
      throw new RuntimeException("Error getting properties file : " + filePropertiesName,e);
    }
  }
}

private void initProperties ( String filePropertiesName ) { readFromClassPath ( filePropertiesName ) ; Path curDirPath = getFileInCurrentDir ( filePropertiesName ) ; if ( Files . exists ( curDirPath ) ) { try ( InputStream curFolder = Files . newInputStream ( curDirPath ) ) { if ( curFolder != null ) { load ( curFolder ) ; } } catch ( Exception e ) { throw new RuntimeException ( "Error getting properties file : " + filePropertiesName , e ) ; } } }
first loads properties file from class path after that from current folder . so properties file in current folder is always overrides properties in classpath .
