12 2021 档案
摘要:一、文件上传 1. controller层 @RestController @RequestMapping(value = "/excel") public class UploadController { @Autowired private UploadExcelPoiService uploa
阅读全文
摘要:private void download(String token, String guid, HttpServletRequest req, HttpServletResponse resp) { File outputFile = null; try { EdmConfig config =
阅读全文
摘要:一、背景 当业务实现上需要用到本地缓存,来解决一些数据量相对较小但是频繁访问数据的场景,可以采用Google的CacheBuilder解决方案。 二、代码实现 1. 首先在maven中引入下面的包 <dependency> <groupId>com.google.guava</groupId> <a
阅读全文