上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 30 下一页
摘要: 常用下面这条命令: chmod 777 文件或目录 示例:chmod 777 /etc/squid 运行命令后,squid文件夹(目录)的权限就被修改为777(可读可写可执行)。 如果是Ubuntu系统,可能需要加上sudo来执行: sudo chmod 777 /etc/squid 故事的开始,都 阅读全文
posted @ 2020-10-29 10:46 弓呆的胖次 阅读(1865) 评论(0) 推荐(0) 编辑
摘要: 原作 https://www.cnblogs.com/winner-0715/p/6109037.html?utm_source=itdadao&utm_medium=referral 依赖可以用这个: 或者: <dependency> <groupId>com.fasterxml.jackson. 阅读全文
posted @ 2020-10-28 21:30 弓呆的胖次 阅读(32519) 评论(0) 推荐(1) 编辑
摘要: 1 Lombok背景介绍 官方介绍如下: Project Lombok makes java a spicier language by adding 'handlers' that know how to build and compile simple, boilerplate-free, no 阅读全文
posted @ 2020-10-27 15:28 弓呆的胖次 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 原作: https://www.cnblogs.com/jpfss/p/9929108.html <T> T表示返回值是一个泛型,传递啥,就返回啥类型的数据,而单独的T就是表示限制你传递的参数类型,这个案例中,通过一个泛型的返回方式,获取每一个集合中的第一个数据, 通过返回值<T> T 和T的两种方 阅读全文
posted @ 2020-10-27 14:22 弓呆的胖次 阅读(217) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/ysocean/p/8486500.html 阅读全文
posted @ 2020-10-27 11:22 弓呆的胖次 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 原作:https://www.cnblogs.com/qdhxhz/p/10787130.html 阅读全文
posted @ 2020-10-26 20:31 弓呆的胖次 阅读(71) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/6e137ee836a1 声明:如果不想每次都写private final Logger logger = LoggerFactory.getLogger(当前类名.class); 可以用注解@Slf4j; 1.使用idea首先需要安装Lombok 阅读全文
posted @ 2020-10-26 19:07 弓呆的胖次 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 而BeanPropertyRowMapper通过反射来实现db的记录到PO的映射 挖个坑 阅读全文
posted @ 2020-10-23 21:09 弓呆的胖次 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 一、用Stream中对List进行去重:list.stream().distinct() public static List removeDuplicate(List list) { List newList = (List) list.stream().distinct().collect(Co 阅读全文
posted @ 2020-10-23 14:27 弓呆的胖次 阅读(4927) 评论(0) 推荐(0) 编辑
摘要: 转载自:https://blog.csdn.net/yangshangwei/article/details/77619875 @annotation()概述 @annotation表示标注了某个注解的所有方法。 下面通过一个实例说明@annotation()的用法。 AnnotationTestA 阅读全文
posted @ 2020-10-14 16:40 弓呆的胖次 阅读(151) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 30 下一页