摘要:
//在类路径下寻找配置文件来实例化容器 ApplicationContext ctx = new ClassPathXmlApplicationContext(new String[]{"beans.xml"}); //在类路径下寻找配置文件来实例化容器 ApplicationContext ctx = new FileSystemXmlApplicationContext(new String[]{"d:\\beans.xml"}); 阅读全文
摘要:
方法1、在struts.xml文件中添加方法2、在web.xml中修改org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter为:org.apache.struts2.dispatcher.FilterDispatcher 阅读全文