严重: Exception starting filter struts2
Class: com.opensymphony.xwork2.spring.SpringObjectFactory
File: SpringObjectFactory.java
Method: getClassInstance
Caused by: java.lang.NullPointerException
下面是我的配置文件和代码:
@Controller
@Scope("prototype")
public class FirstAction extends BaseAction{
public String welcome() throws Exception {
return "welcome";
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<!-- -->
/pages/welcome.jsp
<?xml version="1.0" encoding="UTF-8"?>
used
<!-- struts前端控制器配置 -->
struts2
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
struts2
/*