快速浏览一下,看起来你需要注射一个 RetryLimitHashedCredentialsMatcher 而不是在Spring之外管理对象,因为你在其中自动装配对象。
RetryLimitHashedCredentialsMatcher