随笔分类 - JAVA
摘要:cell.getCellStyle().getDataFormat()//获取当前cell数值格式 cell.getStringCellValue()//直接获取内容 if (cell != null) { cell.setCellType(Cell.CELL_TYPE_STRING); /*如果获
阅读全文
摘要:1.pom.xml <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> </dependency> 2.application.properties spring.redis.host=192.16
阅读全文
摘要:示例:A服务调用B服务 AB服务中添加feign+redis+session依赖 //feign依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeig
阅读全文
摘要:同种方式适用update批量操作,与单条操作相比效率提高了三分之二。 此方式需要注意的是:不要一次性提交太多条数据,拼接后的sql过长,可能会导致语句无法执行。 insert、update语句就是常规单条操作写法。 SqlSession sqlSession = sqlSessionFactory.
阅读全文
摘要:import com.sinoup.model.Result; import com.sinoup.service.impl.KunlunSpTableImpl; import org.springframework.beans.factory.annotation.Autowired; impor
阅读全文
摘要:import com.univocity.parsers.tsv.TsvParser; import com.univocity.parsers.tsv.TsvParserSettings; import org.springframework.util.ClassUtils; public cla
阅读全文
摘要:package com.sinoup.util;/** * Created by Administrator on 2020-4-18. */ /** * @Title: * @ProjectName * @Description:比较字符串相似度 * @author: TongSiYu * @da
阅读全文
摘要:FileInputStream fileInputStream = new FileInputStream(rootPath + path + "/" + fileName); List<String> list = ExcelUtils.queryTopCell(fileInputStream,
阅读全文
摘要:public Result fileUp(HttpServletRequest request) { RowsVo vo = new RowsVo(); MultipartHttpServletRequest multipartRequest = (MultipartHttpServletReque
阅读全文

浙公网安备 33010602011771号