摘要: PostMapping、GetMapping和RequestMapping PostMapping和GetMapping封装了method=“”,限制了method,更加规范化。 post和get的区别: 通过浏览器的地址栏输入地址,所访问的URL都是get请求,因此如果以post定义方法,那么由于 阅读全文
posted @ 2020-08-03 17:57 机械公敌 阅读(1029) 评论(0) 推荐(0) 编辑
摘要: 以下按照引用强弱关系进行排序: 强引用 内存溢出都不会回收。 软引用 public class MyDataTest { public static void main(String[] args) { //SoftReference<String[]> data=new SoftReference 阅读全文
posted @ 2020-08-03 17:15 机械公敌 阅读(463) 评论(0) 推荐(0) 编辑