导出excel时一个页面问题

错误: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"

猜你喜欢

转载自www.cnblogs.com/onroad2019/p/11326948.html
今日推荐