自测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 异常相关推荐

  1. “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 ...

  2. 苹果微信推送服务器错误,接入WxPusher微信推送服务出现错误:Content type application/x...

    背景 使用WxPusher微信推送服务 ,可以及时的将服务的一些运行异常信息,发送到自己的微信上,方便了解服务的运行状态(PS:这个服务是免费的). 你可以在这里看到WxPusher微信推送服务的接入 ...

  3. 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 ...

  4. 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 ...

  5. 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 ...

  6. Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ not supported

    问题描述: 我写了一个接口,这个接口参数是这样的 @ResponseBody @RequestMapping(value = "importData", method = Requ ...

  7. 请求状态为200,前端报系统出错,后端日志报“Content type ‘application/octet-stream‘not supported“错误

    请求后端出现"Content type 'application/octet-stream'not supported"错误 错误描述: Content type 'applica ...

  8. 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 ...

  9. HttpMediaTypeNotSupportedException: Content type ‘application/x-www-form-urlencoded;charset=UTF-8‘ n

    问题如下: Resolved [org.springframework.web.HttpMediaTypeNotSupportedException: Content type 'applicatio ...

  10. HttpMediaTypeNotSupportedException: Content type ‘application.yml/json;charset=UTF-8‘ not supported

    异常情况 首先,这个问题只有我在网页上发送对应的PUT请求才会出现,使用postman发送这个PUT请求,完全不会出错,所以可以将问题定位到应该是HTML代码出了问题 出现这个问题,因为之前没遇到过, ...

最新文章

  1. 让大规模深度学习训练线性加速、性能无损,基于BMUF的Adam优化器并行化实践...
  2. Linux的centos7.2部署rocketMq3.5.8
  3. Linux01-Linux高级特殊权限SUID详解25
  4. CSS漂亮盒子(上)
  5. 【面试 struts2】【第三篇】struts2的问题
  6. python运行系统找不到指定文件_“系统无法找到指定的文件”当调用Python中的subprocess.Popen...
  7. 关于for和foreach,兼顾效率与安全
  8. C语言链表为什么倒着输出,关于链表倒着存,正着输出。
  9. 小猫的java基础知识点汇总(下)
  10. 计算机辅助设计教案板书,计算机辅助设计教案计机辅助设计教案.doc
  11. mysql开通访问权限_mysql 用户远程访问权限开通
  12. Struts2表单验证的xml配置
  13. 网络安全法对计算机人员的影响,网络安全法的基本原则-网络安全论文-计算机论文.docx...
  14. ASP.NET JS常用方法类
  15. postman 使用
  16. DOS编写脚本常用命令整理
  17. AD用SmartPDF导出原理图标号显示不全解决方法
  18. 华为云查询弹性云服务器规格信息,查询规格详情和规格扩展信息列表
  19. su: warning: cannot change directory to : Permission denied ;-bash: bash_profile: Permission denied
  20. Java深克隆和浅克隆的原理及实现

热门文章

  1. 超级BT木马的分析报告与查杀.
  2. Three.js使用技巧
  3. 为什么对Java中的负数取绝对值结果不一定是正数?
  4. 离开互联网上岸1年后,我后悔了!。。。
  5. 不是延期就是崩盘,游戏移植到底有多难?
  6. 今日头条2017校园招聘 春招4.18笔试
  7. 试炼之路(起)——0407
  8. 信息系统或(Information Systems)
  9. Bystack世界观(二):区块链岛屿法则
  10. 打造canvas签名组件