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