- 博客(3)
- 收藏
- 关注
原创 设计模式之适配器模式
定义:适配器模式将一个类的接口,转换成客户期望的另一个类的接口,适配器让原本接口不兼容的类可以合作无间(headfirst设计模式)代码块接口A public interface A { void a(); }接口B public interface B { void b(); }B的实现类 public class BImpl implements B { @Overrid
2017-10-11 10:14:16
188
转载 idea @Override is not allowed when implementing interface method
近期研究idea,在编码过程发现报错:@Override is not allowed when implementing interface method 。找到一个老外的回答,感觉挺有用的,记录下来,以供参考:1、在project/module上,右键选择菜单“Open Module Settings” ;2、选择Modules,修改“Language Level” 为 “8-Lambdas,…
2017-08-20 11:13:41
241
原创 springmvc之上传图片
public String updateItem(QueryVo vo,MultipartFile pictureFile) throws IllegalStateException, IOException{ String name=UUID.randomUUID().toString().replaceAll("-", ""); String ext=FilenameUtils.get
2017-08-19 17:32:02
335
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅