easyExcel Content-Type: application/vnd.ms-excel 异常
自测ok,部署到服务器就报错。一开始以为消息转换器问题。。。没看cause by导致定位的方向错误。
报错一看。缺少so库导致的。本地是m1pro的arm-jdk11。
再看看线上的dockerfile。用的是FROM openjdk:13-alpine。
猜想是:jre环境导致的问题。
果然替换完整的jdk-11是可以的。
结论:alpine精简版的镜像甚至去掉了字体,于是导出excel出现了异常了。Dokcerfile添加
ENV LANG en_US.UTF-8
RUN apk add --update ttf-dejavu fontconfig && rm -rf /var/cache/apk/*
ok,坚持少年!!!
easyExcel Content-Type: application/vnd.ms-excel 异常相关推荐
- “Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported“解决方法
项目接口返回 code: 500 data: null message: "Content type 'application/x-www-form-urlencoded;charset=U ...
- 苹果微信推送服务器错误,接入WxPusher微信推送服务出现错误:Content type application/x...
背景 使用WxPusher微信推送服务 ,可以及时的将服务的一些运行异常信息,发送到自己的微信上,方便了解服务的运行状态(PS:这个服务是免费的). 你可以在这里看到WxPusher微信推送服务的接入 ...
- Spring Boot——[Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supported]解决方案
问题描述 2020-02-13 19:32:04.322 WARN 109508 --- [p-nio-80-exec-4] .m.m.a.ExceptionHandlerExceptionResol ...
- jmeter报“msg“:“Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported“的解决方法
jmeter报"msg":"Content type 'application/x-www-form-urlencoded;charset=UTF-8' not supp ...
- Error while extracting response for type [class xxx] and content type application/xml;charset=UTF-8
强烈推荐一个大神的人工智能的教程:http://www.captainbed.net/zhanghan [前言] 最近在用restTemplate进行一次http请求时发现了报错(Error whil ...
- Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported
问题描述: 我写了一个接口,这个接口参数是这样的 @ResponseBody @RequestMapping(value = "importData", method = Requ ...
- 请求状态为200,前端报系统出错,后端日志报“Content type ‘application/octet-stream‘not supported“错误
请求后端出现"Content type 'application/octet-stream'not supported"错误 错误描述: Content type 'applica ...
- Springboot 报错Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported
SpringBoot错误解决 1.错误展示 2021-03-23 12:20:02.805 ERROR org.springframework.web.HttpMediaTypeNotSupporte ...
- HttpMediaTypeNotSupportedException: Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ n
问题如下: Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'applicatio ...
- HttpMediaTypeNotSupportedException: Content type ‘application.yml/json;charset=UTF-8‘ not supported
异常情况 首先,这个问题只有我在网页上发送对应的PUT请求才会出现,使用postman发送这个PUT请求,完全不会出错,所以可以将问题定位到应该是HTML代码出了问题 出现这个问题,因为之前没遇到过, ...
最新文章
- 让大规模深度学习训练线性加速、性能无损,基于BMUF的Adam优化器并行化实践...
- Linux的centos7.2部署rocketMq3.5.8
- Linux01-Linux高级特殊权限SUID详解25
- CSS漂亮盒子(上)
- 【面试 struts2】【第三篇】struts2的问题
- python运行系统找不到指定文件_“系统无法找到指定的文件”当调用Python中的subprocess.Popen...
- 关于for和foreach,兼顾效率与安全
- C语言链表为什么倒着输出,关于链表倒着存,正着输出。
- 小猫的java基础知识点汇总(下)
- 计算机辅助设计教案板书,计算机辅助设计教案计机辅助设计教案.doc
- mysql开通访问权限_mysql 用户远程访问权限开通
- Struts2表单验证的xml配置
- 网络安全法对计算机人员的影响,网络安全法的基本原则-网络安全论文-计算机论文.docx...
- ASP.NET JS常用方法类
- postman 使用
- DOS编写脚本常用命令整理
- AD用SmartPDF导出原理图标号显示不全解决方法
- 华为云查询弹性云服务器规格信息,查询规格详情和规格扩展信息列表
- su: warning: cannot change directory to : Permission denied ;-bash: bash_profile: Permission denied
- Java深克隆和浅克隆的原理及实现