With Spring Framework 6.0.0-M2, the caches property is not valid and may be replaced by cacheNames

Comment From: snicoll

Thanks for the PR.

With Spring Framework 6.0.0-M2, the caches property is not valid

As far as I can see, it never was.