Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
springboot 打包后部署到linux服务器上报Caused by: java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. 错 项目中用到了awt来进行打印,大老指教!!