摘要: uni-app获取当前位置 uni.getLocation() 点击查看代码 function getRange(lat1, lng1, lat2, lng2) { var radLat1 = lat1 * Math.PI / 180.0; var radLat2 = lat1 * Math.PI 阅读全文
posted @ 2022-02-14 09:46 铜丝儿 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 1.加文字水印 上传图片 <view class="cu-form-group"> <view class="grid col-4 grid-square flex-sub"> <canvas style="border: 1px solid green;position: absolute;lef 阅读全文
posted @ 2022-02-14 09:33 铜丝儿 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 1.单张 <el-table-column label="签名"> <template slot-scope="scope"> <img :src="scope.row.signNameUrl" width="80" height="80" class="head_pic"/> </template 阅读全文
posted @ 2021-08-24 17:30 铜丝儿 阅读(329) 评论(0) 推荐(0) 编辑
摘要: cell.getCellStyle().getDataFormat()//获取当前cell数值格式 cell.getStringCellValue()//直接获取内容 if (cell != null) { cell.setCellType(Cell.CELL_TYPE_STRING); /*如果获 阅读全文
posted @ 2021-08-24 10:28 铜丝儿 阅读(521) 评论(0) 推荐(0) 编辑
摘要: 1.pom.xml <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> </dependency> 2.application.properties spring.redis.host=192.16 阅读全文
posted @ 2021-08-13 13:46 铜丝儿 阅读(863) 评论(0) 推荐(0) 编辑
摘要: 示例:A服务调用B服务 AB服务中添加feign+redis+session依赖 //feign依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeig 阅读全文
posted @ 2021-08-10 17:08 铜丝儿 阅读(691) 评论(0) 推荐(0) 编辑
摘要: 同种方式适用update批量操作,与单条操作相比效率提高了三分之二。 此方式需要注意的是:不要一次性提交太多条数据,拼接后的sql过长,可能会导致语句无法执行。 insert、update语句就是常规单条操作写法。 SqlSession sqlSession = sqlSessionFactory. 阅读全文
posted @ 2020-06-20 11:03 铜丝儿 阅读(3183) 评论(0) 推荐(0) 编辑
摘要: //多个线程跑同一个任务,参数不同 int thread = Integer.parseInt(2); int threadSize = 3000; ExecutorService eService = Executors.newFixedThreadPool(thread); //创建一个线程池 阅读全文
posted @ 2020-06-20 10:42 铜丝儿 阅读(171) 评论(0) 推荐(0) 编辑
摘要: import com.sinoup.model.Result; import com.sinoup.service.impl.KunlunSpTableImpl; import org.springframework.beans.factory.annotation.Autowired; impor 阅读全文
posted @ 2020-06-09 09:08 铜丝儿 阅读(423) 评论(0) 推荐(0) 编辑
摘要: <div id="pdfContent" style="height:100%;width:100%;"></div> function showPdf(purl) { //var purl = 'Scala(中文完整版).pdf';//要展示的文件路径 // 下面代码都是处理IE浏览器的情况 if 阅读全文
posted @ 2020-06-02 09:37 铜丝儿 阅读(3539) 评论(0) 推荐(0) 编辑