当前位置: 首页 > news >正文

网站收录不好排名高网页搜索引擎

网站收录不好排名高,网页搜索引擎,网站建设公司电话销售话术,特产网站建设方案1、在windows系统下启动rocketmq操作: 在bin目录下使用cmd 分别输入 start mqnamesrv.cmd start mqbroker.cmd -n 127.0.0.1:9876 autoCreateTopicEnabletrue 2、在stream流中需要new对象时,可能会出现new很多对象堆积在堆中,这是需要用try,…

1、在windows系统下启动rocketmq操作:
在bin目录下使用cmd
分别输入
start mqnamesrv.cmd
start mqbroker.cmd -n 127.0.0.1:9876 autoCreateTopicEnable=true

2、在stream流中需要new对象时,可能会出现new很多对象堆积在堆中,这是需要用try,finally在finally中将new的对象为null,并用gc收集
如下:

List<ChildModelParamDTO> childModelParamDTOS = childModels.stream().map(childModel -> {ChildModelParamDTO childModelParamDTO=new ChildModelParamDTO();try {LambdaQueryWrapper<PredictionModelParam> eq1 = new QueryWrapper<PredictionModelParam>().lambda().eq(PredictionModelParam::getPredictionModelId, childModel.getId());PredictionModelParam predictionModelParam = predictionModelParamMapper.selectOne(eq1);childModelParamDTO.setCode(childModel.getCode());childModelParamDTO.setName(childModel.getName());childModelParamDTO.setParameterWeight(predictionModelParam.getParameterWeight());return childModelParamDTO;}finally {childModelParamDTO=null;System.gc();}}).collect(Collectors.toList());


3、在使用easyexcel时,由于监听器无法被spring管理,所以无法在监听器内部使用mp,此时可以用重写的方式将
excel中数据添加进数据库中,如:
 

 EasyExcel.read(file, PredictionParamExcelDTO.class, new ReadListener<PredictionParamExcelDTO>() {@Overridepublic void invoke(PredictionParamExcelDTO predictionParamExcelDTO, AnalysisContext analysisContext) {PredictionParam predictionParam = null;try {predictionParam = new PredictionParam();predictionParam.setMaterialCode(predictionParamExcelDTO.getMaterialCode());predictionParam.setMaterialName(predictionParamExcelDTO.getMaterialName());predictionParam.setProductionLine(predictionParamExcelDTO.getProductionLine());predictionParam.setCapacity(Integer.valueOf(predictionParamExcelDTO.getCapacity()));predictionParamService.save(predictionParam);} catch (Exception e) {e.printStackTrace();log.error("模板上传失败");throw e;}}@Overridepublic void doAfterAllAnalysed(AnalysisContext analysisContext) {}}).sheet().doRead();


4、下载excel的同时,将数据写入excel中:
 

try {httpServletResponse.setContentType("application/vnd.ms-excel");String fileName = URLEncoder.encode("D:/idea/idea_projects/mwlc-dcm-requirement-backend/predictionParamExcel.xlsx", "UTF-8");httpServletResponse.setHeader("content-disposition", "attachment;filename="+fileName);ServletOutputStream outputStream;outputStream=httpServletResponse.getOutputStream();EasyExcel.write(outputStream).head(PredictionParamExcelDTO.class).excelType(ExcelTypeEnum.XLSX).sheet("日基准产能表模板").doWrite(这里放需要写入excel的数据);outputStream.close();}catch (IOException o){throw new RuntimeException(o);}

http://www.dinnco.com/news/39013.html

相关文章:

  • 网站设计收费标准html底部友情链接代码
  • 玉溪市城乡建设局网站seo工具是什么意思
  • 网站开发路径企业管理培训视频免费
  • asp.net 怎么做网站广点通投放平台登录
  • 珠海主题网站设计模板网站策划书模板范文
  • 个人网站运营怎么做域名注册免费
  • 网站建设行业咨讯文章抖音权重查询
  • 网站开发是叫系统吗青岛网站建设制作推广
  • 西安网站建设培训班今日实时热搜
  • 公司注册网站方法十大推广app平台
  • 广西住房和城乡建设厅网站证件百度推广登陆平台
  • 网站开发相关的教材书籍如何申请一个网站域名
  • 网站服务器出错了怎么办百度点击优化
  • yum wordpress php扩展宁波seo网络推广咨询价格
  • 做策划常用的网站google官网入口
  • 建网站怎么挣钱php开源建站系统
  • 163邮箱注册申请注册官网windows优化大师可靠吗
  • 深圳住建网站网红营销
  • 哪家网站建设公司好网站收录服务
  • 视频收费网站怎么做百度竞价恶意点击软件
  • 学做网站要编程淘宝搜索排名
  • 做网站专题怎样添加微博怎样通过网络销售自己的产品
  • 网站开发程序说明百度手机端排名
  • PHP网站开发工程师快抖霸屏乐云seo
  • wikidot怎么建设网站谷歌搜索引擎网页版入口
  • 手表网站 美国北京朝阳区优化
  • 济宁城乡建设委员会的网站百度快速排名工具
  • 莱芜金点子司机在线招聘信息西安seo服务
  • 网站建设分金手指专业十九站长工具介绍
  • 网上发布信息的网站怎么做的青岛关键词网站排名