如果我尝试作为 Java 应用程序运行,我的代码运行正常。但是当我使用调试作为 Java 应用程序异常文件时,会抛出未找到的异常文件。这是我的代码:
public class SecureGameServer {
public static final ApplicationContext ac= new ClassPathXmlApplicationContext("lion-server.xml");//Here I got the exception
//public static final ApplicationContext ac= new FileSystemXmlApplicationContext("src\\main\\resources\\lion-server.xml");This code doesnt work too
public static DefaultChannelGroup gameChannels;
public static void main(String[] args) throws Exception {
...
}
}
怎么了?该程序运行良好。但我无法调试它。