java图片添加文字/图片水印

读取要处理的图片

1
2
ClassPathResource resource = new ClassPathResource("template/clockbg.png");
BufferedImage image = ImageIO.read(resource.getInputStream());
阅读更多

go并发-Mutex使用

Mutex最佳实践

mutex 会嵌入到其他struct使用,如果嵌入的字段过多,会将Mutex放在控制的字段上面,然后使用空格将字段分隔出来

阅读更多