Spring boot +java.awt.HeadlessException: null异常处理 参考https://blog.csdn.net/weixin_40906156/article/details/82699660 虚拟机选项加入-Djava.awt.headless=false