目录

chen 的个人博客

VX:ZzzChChen
Phone:13403656751
Email:zxydczzs@gmail.com

存档: 2021 年 06 月 (7)

Postman报错Could not send request 有更新!

大家一定要擦亮眼球!擦亮眼球!擦亮眼球!!! 这是报错的图片 结果就因为多了个空格 ?

uni-app自定义遮罩模板。 有更新!

一、新建组件 mask.vue <template> <view> <view class="cpt-mask"> </view> </view> </template> <script> export default { } </script> <style> .cpt-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #000000; opacity: 0.5; z-index: 99; } </style> 二、在有需求的页面引入 mask.vue 遮罩组件 <template> <view> <!-- 遮罩组件 --> <myMaskv-if="mask"></myMask> </view> </template> <script> ....

Java判断文件是否为图片类型且MultipartFile转File

private MimetypesFileTypeMap mtftp; mtftp = new MimetypesFileTypeMap(); mtftp.addMimeTypes("image png tif jpg jpeg bmp"); String contentType; try { contentType = mtftp.getContentType(multipartFileToFile(multipartFile)); } catch (IOException e) { e.printStackTrace(); } String type = contentType.split("/")[0]; if(!"image".equals(type)){ //非图片类型 } /** * MultipartFile 转 File * * @param file * @throws Exception */ public File multipartFileToFile(MultipartFile file) throws IOException { File toFile = ....

echarts图表示例+源码&&免费开源DataV 有更新!

一、echarts图表示例+源码 https://www.makeapie.com/explore.html#sort=rank~timeframe=all~author=all 二、免费开源DataV http://datav.jiaminghi.com/

PS、CSS使图片高斯模糊 有更新!

一、PS图片高斯模糊 1、打开ps,将图片导入。 2、菜单栏选择滤镜-模糊-高斯模糊 3、将半径修改即可,值越大越模糊。 二、CSS调整图片高斯模糊 <img src="https://m1.shanhelinks.com/static/img/mpbackground/bgshexiang.jpg"> <div class="backgr-text"> <h1>Hello World</h1> <h2>Blurred Background Image</h2> </div> <style> img { width: 100%; height: 2048px; -webkit-filter: blur(4px); filter: blur(15px); margin-top: 20px; } h1 { color:red; } .backgr-text { position: absolute; top: 20%; left: 50%; transform: translate(-....

Java Shiro 配置多个URL过滤条件

如图: 参数使用大括号括住,逗号隔开。

Java OkHttp的基本使用

一、pom.xml <dependency> <groupId>com.squareup.okhttp3</groupId> <artifactId>okhttp</artifactId> <version>4.8.1</version> </dependency> <dependency> <groupId>org.jetbrains.kotlin</groupId> <artifactId>kotlin-stdlib</artifactId> <version>1.3.70</version> </dependency> 二、GET请求 1、普通get请求。 OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url(url) .build(); try { Response....