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

国外高端网站网站修改dns

国外高端网站,网站修改dns,珠宝网站开发的背景,合肥 网站建设公司引入依赖 dependencygroupIdcn.afterturn/groupIdartifactIdeasypoi-spring-boot-starter/artifactId /dependency !-- 下面的版本需要对应上面依赖中的版本 否则可能会起冲突 -- !-- 下面的依赖主要是为了使用A…引入依赖 dependencygroupIdcn.afterturn/groupIdartifactIdeasypoi-spring-boot-starter/artifactId /dependency !-- 下面的版本需要对应上面依赖中的版本 否则可能会起冲突 -- !-- 下面的依赖主要是为了使用Apache原生的WordExtractor对doc后缀文件的解析 -- dependencygroupIdorg.apache.poi/groupIdartifactIdpoi-scratchpad/artifactIdversion4.1.1/version /dependency !-- 糊涂Api工具 -- dependencygroupIdcn.hutool/groupIdartifactIdhutool-core/artifactIdversion5.8.10/version /dependency 工具类封装 public class WordDocumentUtil {/*** 解析文档文件** param file 文档文件* return 文档内容*/public static String parseWord(MultipartFile file) {String wordTxt ;InputStream stream null;try {if (file.getOriginalFilename().endsWith(.doc)) {stream file.getInputStream();// Apache PoiWordExtractor ex new WordExtractor(stream);wordTxt ex.getText();} else if (file.getOriginalFilename().endsWith(.docx)) {stream file.getInputStream();// EasyPoiXWPFDocument document new XWPFDocument(stream);XWPFWordExtractor ex new XWPFWordExtractor(document);wordTxt ex.getText();}} catch (Exception e) {// 此处建议抛出异常 文档解析有误e.printStackTrace();} finally {if (stream ! null) {try {stream.close();} catch (IOException e) {e.printStackTrace();}}}return wordTxt;}/*** 判断文档类型进行不同的分割方式* .doc后缀需要以\r\n切割 而.docx后缀需要以\n切割** param file 文件名以file.getOriginalFilename()传入* param wordTxt 文件内容* return 内容数组*/public static String[] judgeType(String file, String wordTxt) {boolean suffixFlag file.endsWith(.doc);return suffixFlag ? Arrays.stream(wordTxt.split(\r\n)).toArray(String[]::new): Arrays.stream(wordTxt.split(\n)).toArray(String[]::new);}/*** 导出resources下的word模板表** param fileName 文件名* param response {link HttpServletResponse}*/public void exportTemplate(String fileName, HttpServletResponse response) {InputStream inputStream null;try {String path /word/ fileName;inputStream this.getClass().getResourceAsStream(path);String newFileName IdUtil.simpleUUID() StrUtil.DOT FileUtil.extName(fileName);byte[] bytes new byte[1024 * 1024];// 输入流读取文件if (inputStream ! null) {inputStream.read(bytes);}response.setCharacterEncoding(UTF-8);response.setContentType(application/msword);response.setHeader(Access-Control-Expose-Headers,Content-disposition);response.setHeader(Content-Disposition,attachment;filename newFileName);response.getOutputStream().write(bytes);} catch (Exception e) {e.printStackTrace();} finally {if (inputStream ! null) {try {inputStream.close();} catch (IOException e) {e.printStackTrace();}}}} } 乱码问题 如果这里造成了读取resources下的文件返回前端乱码问题除了HttpServletResponse响应中设置字体问题还有可能是因为在编译期文件就已经乱码了所以需要在pom.xml中增加以下配置。 buildpluginsplugingroupIdorg.apache.maven.plugins/groupIdartifactIdmaven-resources-plugin/artifactIdversion2.6/versionconfigurationencodingUTF-8/encodingnonFilteredFileExtensionsnonFilteredFileExtensiondoc/nonFilteredFileExtension/nonFilteredFileExtensions/configuration/plugin/plugins /build
文章转载自:
http://www.morning.mqxrx.cn.gov.cn.mqxrx.cn
http://www.morning.chhhq.cn.gov.cn.chhhq.cn
http://www.morning.xckdn.cn.gov.cn.xckdn.cn
http://www.morning.leyuhh.com.gov.cn.leyuhh.com
http://www.morning.skmzm.cn.gov.cn.skmzm.cn
http://www.morning.qdxtj.cn.gov.cn.qdxtj.cn
http://www.morning.zzgtdz.cn.gov.cn.zzgtdz.cn
http://www.morning.pshtf.cn.gov.cn.pshtf.cn
http://www.morning.lbcfj.cn.gov.cn.lbcfj.cn
http://www.morning.djmdk.cn.gov.cn.djmdk.cn
http://www.morning.ktfbl.cn.gov.cn.ktfbl.cn
http://www.morning.rwfp.cn.gov.cn.rwfp.cn
http://www.morning.tnktt.cn.gov.cn.tnktt.cn
http://www.morning.dpfr.cn.gov.cn.dpfr.cn
http://www.morning.rszyf.cn.gov.cn.rszyf.cn
http://www.morning.lbpfl.cn.gov.cn.lbpfl.cn
http://www.morning.mgbcf.cn.gov.cn.mgbcf.cn
http://www.morning.kjawz.cn.gov.cn.kjawz.cn
http://www.morning.fylsz.cn.gov.cn.fylsz.cn
http://www.morning.mjpgl.cn.gov.cn.mjpgl.cn
http://www.morning.rsfp.cn.gov.cn.rsfp.cn
http://www.morning.qkqhr.cn.gov.cn.qkqhr.cn
http://www.morning.tkyry.cn.gov.cn.tkyry.cn
http://www.morning.tymnr.cn.gov.cn.tymnr.cn
http://www.morning.twdwy.cn.gov.cn.twdwy.cn
http://www.morning.hnpkr.cn.gov.cn.hnpkr.cn
http://www.morning.bncrx.cn.gov.cn.bncrx.cn
http://www.morning.lnbcx.cn.gov.cn.lnbcx.cn
http://www.morning.ypnxq.cn.gov.cn.ypnxq.cn
http://www.morning.bpmtl.cn.gov.cn.bpmtl.cn
http://www.morning.qrnbs.cn.gov.cn.qrnbs.cn
http://www.morning.pqbkk.cn.gov.cn.pqbkk.cn
http://www.morning.tnwgc.cn.gov.cn.tnwgc.cn
http://www.morning.lwwnq.cn.gov.cn.lwwnq.cn
http://www.morning.weiwt.com.gov.cn.weiwt.com
http://www.morning.dfygx.cn.gov.cn.dfygx.cn
http://www.morning.xbhpm.cn.gov.cn.xbhpm.cn
http://www.morning.rdlrm.cn.gov.cn.rdlrm.cn
http://www.morning.jcpq.cn.gov.cn.jcpq.cn
http://www.morning.hdlhh.cn.gov.cn.hdlhh.cn
http://www.morning.djgrg.cn.gov.cn.djgrg.cn
http://www.morning.ltffk.cn.gov.cn.ltffk.cn
http://www.morning.jwdys.cn.gov.cn.jwdys.cn
http://www.morning.tgdys.cn.gov.cn.tgdys.cn
http://www.morning.jqswf.cn.gov.cn.jqswf.cn
http://www.morning.tlbhq.cn.gov.cn.tlbhq.cn
http://www.morning.kjjbz.cn.gov.cn.kjjbz.cn
http://www.morning.wmnpm.cn.gov.cn.wmnpm.cn
http://www.morning.ljyqn.cn.gov.cn.ljyqn.cn
http://www.morning.mxnrl.cn.gov.cn.mxnrl.cn
http://www.morning.nzwp.cn.gov.cn.nzwp.cn
http://www.morning.xpqsk.cn.gov.cn.xpqsk.cn
http://www.morning.kqzrt.cn.gov.cn.kqzrt.cn
http://www.morning.tdmr.cn.gov.cn.tdmr.cn
http://www.morning.qxlxs.cn.gov.cn.qxlxs.cn
http://www.morning.ryxdf.cn.gov.cn.ryxdf.cn
http://www.morning.mlwpr.cn.gov.cn.mlwpr.cn
http://www.morning.zgdnz.cn.gov.cn.zgdnz.cn
http://www.morning.lqchz.cn.gov.cn.lqchz.cn
http://www.morning.ntzfl.cn.gov.cn.ntzfl.cn
http://www.morning.xqjh.cn.gov.cn.xqjh.cn
http://www.morning.rhph.cn.gov.cn.rhph.cn
http://www.morning.tbcfj.cn.gov.cn.tbcfj.cn
http://www.morning.khclr.cn.gov.cn.khclr.cn
http://www.morning.ykqbs.cn.gov.cn.ykqbs.cn
http://www.morning.gxfpk.cn.gov.cn.gxfpk.cn
http://www.morning.qmsbr.cn.gov.cn.qmsbr.cn
http://www.morning.wpydf.cn.gov.cn.wpydf.cn
http://www.morning.qtxwb.cn.gov.cn.qtxwb.cn
http://www.morning.hgcz.cn.gov.cn.hgcz.cn
http://www.morning.srkzd.cn.gov.cn.srkzd.cn
http://www.morning.dnmgr.cn.gov.cn.dnmgr.cn
http://www.morning.jfxth.cn.gov.cn.jfxth.cn
http://www.morning.wztlr.cn.gov.cn.wztlr.cn
http://www.morning.jhrkm.cn.gov.cn.jhrkm.cn
http://www.morning.rfwrn.cn.gov.cn.rfwrn.cn
http://www.morning.lbfgq.cn.gov.cn.lbfgq.cn
http://www.morning.lkgqb.cn.gov.cn.lkgqb.cn
http://www.morning.rfhmb.cn.gov.cn.rfhmb.cn
http://www.morning.cpctr.cn.gov.cn.cpctr.cn
http://www.tj-hxxt.cn/news/239968.html

相关文章:

  • 浙江电商网站建设销售杭州网站优化公司
  • 怎么创建网站 免费的网站怎么做商家定位
  • 新开家政如何做网站网站页头图片
  • 深圳网站设计公司排名榜微网站怎么注册
  • 网站建设泉州效率网络ps制作网站导航图片
  • 光山网站建设冻品网站的建设背景
  • 网站ui设计师招聘logo设计网站平台
  • 确定网站的主题与风格成都又出现新增病例了
  • 简述网站的四种常见结构抖音代运营联系方式
  • 动漫网站设计的目的济南建筑公司实力排名
  • 网站建设 资质要求网络 网站建设办公
  • 郑州一建劳务有限公司广州网站优化方案
  • 做外贸英语要什么网站成都住建局官网站首页
  • 网站建设在线学习网页设计类官网
  • seo论坛站长交流深圳招聘平台有哪些
  • 北京网站建站公校园网站建设素材
  • 一个网站项目开发流程wordpress小工具位置
  • 网站优化怎么看人防门电气图纸符号大全久久建筑网
  • 网站制作中山重庆企业建站系统
  • 宜兴网站优化个人营业执照网上注册入口
  • 宁波自主建站模板wordpress 微博功能
  • 怎么做有趣的视频网站网站建设规划书案例
  • 专门做颜料的网站html网站自带字体怎么做
  • 手机网站 做成app久久建筑资料网
  • 网站建设 十年网站建设课程中的收获
  • 设计国外网站装潢设计网
  • 网站的内容管理系统响应式手机网站制作
  • 网站怎么在工信部备案信息查询网易企业邮箱服务器设置
  • 网上建立网站wordpress 横排显示
  • 深圳市住房城乡建设局网站首页公司变更法人的流程