question: 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 ) ; } } }
target:  First loads properties file from class path after that from current folder. So properties file in current folder is always overrides properties in classpath.