The getBeanNamesOfType method does not seem to exist, this looks like it should refer to the method called getBeanNamesForType.

Comment From: snicoll

@chenqimiao good catch, thank you!