While most of the time, we never intend to throw unchecked exceptions, it does sometimes happen anyway.
虽然大多数时候,我们不会故意抛出未检测异常,但是确实有些时候会发生这种情况。
Instead, you should use unchecked exceptions for such conditions, so that you can optionally handle these conditions.
相反,您应该对此类条件使用未经检查的异常,以便能够可选地处理这些条件。
You don't have to handle exceptions at this level because Spring translates them to a common set of unchecked exceptions.
您不必在这个级别上处理异常,因为 Spring 将它们转换为一套通用的未检查异常(unchecked exceptions)。
应用推荐