I tried both absolute and relative paths.
My understanding is, if I add togglz.feature-file in application.properties I don't need to override getStateRepositoy with FileBasedStateRepository. Please confirm.
Please take a look at the the files below.
My application.properties
------------------------------------
togglz.features-file=file:./features.properties
togglz.features-file-min-check-interval=10
# Togglz admin configuration
togglz.console.use-management-port: false
togglz.console.enabled=true
togglz.console.secured=false
togglz.console.path=/togglz-console
features.properties in the same directory
------------------------------------------------------