Spring Boot和Spring ldap身份验证错误

时间:2019-10-17 08:56:44

标签: spring spring-boot exception spring-ldap uncaught-exception

我有一个REST API,它包装了一些ldap查询。 我使用ResponseEntityExceptionHandler收集错误,但是当我从ldapTemplate收到错误(例如身份验证错误)时,它将在日志上打印stacktrace。 我如何避免这种行为? 我已经尝试过

server.error.include-stacktrace=never
server.error.include-exception=false

但不起作用。不使用“开发工具”。 问题似乎在@ExceptionHandler一侧。在调用该方法之后,发生未捕获的异常的printstacktrace。

0 个答案:

没有答案