![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
lombok
wanhf11
无。
展开
-
@SneakyThrows 注解
public class Main {@SneakyThrows public static void test() { System.out.println("haha1"); if (1 == 1) { Integer.valueOf("s"); } System.out.println("haha2"); }public static void原创 2016-08-31 17:09:20 · 7801 阅读 · 0 评论 -
lombok使用
@Getter和@Setter:为属性创建getter和setter @EqualsAndHashCode:实现equals()方法和hashCode()方法 @ToString:实现toString()方法 @Data:上述3个annotation的和,会创建getter setter equals hashCode和toString,正如你上面看到的那样 @Cleanup:关闭流 @S转载 2016-08-28 10:18:41 · 405 阅读 · 0 评论