Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图找出是否正确填写了身份验证配置。但我不想发送消息来 catch AuthenticationFailedException()。如何在不发送的情况下捕获此异常?我有几个领域:
AuthenticationFailedException()
如果它们不正确,则应抛出异常。