随笔分类 -  JAVA

摘要:cell.getCellStyle().getDataFormat()//获取当前cell数值格式 cell.getStringCellValue()//直接获取内容 if (cell != null) { cell.setCellType(Cell.CELL_TYPE_STRING); /*如果获 阅读全文
posted @ 2021-08-24 10:28 铜丝儿 阅读(592) 评论(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 铜丝儿 阅读(897) 评论(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 铜丝儿 阅读(772) 评论(0) 推荐(0)
摘要:同种方式适用update批量操作,与单条操作相比效率提高了三分之二。 此方式需要注意的是:不要一次性提交太多条数据,拼接后的sql过长,可能会导致语句无法执行。 insert、update语句就是常规单条操作写法。 SqlSession sqlSession = sqlSessionFactory. 阅读全文
posted @ 2020-06-20 11:03 铜丝儿 阅读(3279) 评论(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 铜丝儿 阅读(434) 评论(0) 推荐(0)
摘要:import com.univocity.parsers.tsv.TsvParser; import com.univocity.parsers.tsv.TsvParserSettings; import org.springframework.util.ClassUtils; public cla 阅读全文
posted @ 2020-04-20 13:13 铜丝儿 阅读(2016) 评论(0) 推荐(0)
摘要:package com.sinoup.util;/** * Created by Administrator on 2020-4-18. */ /** * @Title: * @ProjectName * @Description:比较字符串相似度 * @author: TongSiYu * @da 阅读全文
posted @ 2020-04-18 17:10 铜丝儿 阅读(366) 评论(0) 推荐(0)
摘要:FileInputStream fileInputStream = new FileInputStream(rootPath + path + "/" + fileName); List<String> list = ExcelUtils.queryTopCell(fileInputStream, 阅读全文
posted @ 2020-04-15 09:41 铜丝儿 阅读(2485) 评论(0) 推荐(0)
摘要:public Result fileUp(HttpServletRequest request) { RowsVo vo = new RowsVo(); MultipartHttpServletRequest multipartRequest = (MultipartHttpServletReque 阅读全文
posted @ 2020-04-15 09:31 铜丝儿 阅读(4525) 评论(0) 推荐(0)