导出excel时一个页面问题-X11GraphicsEnvironment

错误:Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
解决:在tomcat里bin目录下的catalina.sh 文件添加  CATALINA_OPTS="-Djava.awt.headless=true"

顺便记录远程debug配置:export CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8788"

posted @ 2019-08-09 14:26  归零19  阅读(432)  评论(0编辑  收藏  举报