常见注解及其作用

@SneakyThrows
@SneakyThrows 是lombok的基本注解。作用在方法上时,方法抛出的异常就不用声明在方法签名上,使代码简洁易读。

你可能感兴趣的:(注解,spring)