重写代码-List一行代码初始化
参考:https://blog.csdn.net/sd19871122/article/details/79398048
重写前:
重写后:
上边的重写,主要用到了两个知识点:
1、lombok(不了解的童鞋,自动百度)
2、就是数据初始化的写法
Read the fucking manual and source code
参考:https://blog.csdn.net/sd19871122/article/details/79398048
重写前:
重写后:
上边的重写,主要用到了两个知识点:
1、lombok(不了解的童鞋,自动百度)
2、就是数据初始化的写法