项目应用服务器tomcat启动正常,在linux启动执行到GraphicsEnvironment.getLocalGraphicsEnvironment()卡主不动,最终在tomcat中加配置
JAVA_OPTS="-Djava.awt.headless=true"解决问题
参见https://www.oschina.net/translate/using-headless-mode-in-java-se
项目应用服务器tomcat启动正常,在linux启动执行到GraphicsEnvironment.getLocalGraphicsEnvironment()卡主不动,最终在tomcat中加配置
JAVA_OPTS="-Djava.awt.headless=true"解决问题
参见https://www.oschina.net/translate/using-headless-mode-in-java-se