The first and third code examples on the File-based Configurations page (howto_filebased.xml) are invalid. Both example create a FileBasedConfigurationBuilder with a Type parameter of Configuration:
However, the Configuration Type parameter is not within bounds of the FileBasedConfigurationBuilder class since the parameter must extend FileBasedConfiguration:
Thus the examples need to be changed to:
I will attach a patch with the necessary corrections.