摘要: 在spring中获取Bean的方式有很多们,这里使用实现ApplicationContextAware接口的方式封装一个可以快速获取Bean实例的方式,具体实现实例: 实现ApplicationContextAware接口获取程序运行上下文: import org.springframework.b 阅读全文
posted @ 2023-03-26 14:59 酸菜鱼没有鱼 阅读(31) 评论(0) 推荐(0) 编辑
摘要: Excel数据包含图片导入,获取excel中图片的数据封装,注意这里只会单独获取图片数据 import cn.afterturn.easypoi.util.PoiCellUtil; import org.apache.poi.hssf.usermodel.*; import org.apache.p 阅读全文
posted @ 2023-03-26 14:39 酸菜鱼没有鱼 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 代码示例: /** * 获取缩略图 * @param url 视频地址 * @param currentTime 缩略图取第几秒的图片 * @param width 截取的图片宽 * @param height 截取的图片高 * @returns {Promise<unknown>} */ expo 阅读全文
posted @ 2023-03-26 14:34 酸菜鱼没有鱼 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 前端相关的正则校验 1.常规手机号校验 const reg = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/ 或 const reg = /^1(3[0-9]|4[01456879]|5[ 阅读全文
posted @ 2023-03-26 14:27 酸菜鱼没有鱼 阅读(33) 评论(0) 推荐(0) 编辑