JOptionPane.showConfirmDialog(null,"过期料是否要出!","提示",JOptionPane.YES_NO_OPTION);代码在测试时可以运行弹框,打war包后放进tomcat运行不了.
求解