严重: Servlet.service() for servlet [action] in context with path [lectsouce] threw exception [javax.servlet.ServletException: java.lang.NullPointerException] with root cause
java.lang.NullPointerException异常 有可能是因为::
java.lang.NullPointerException异常 有可能是因为::
没有在struts-config.xml中配置:
<!-- 配置请求处理器,就是把action的创建交给spring容器处理 -->
<controller>
<set-property property="processorClass" value="org.springframework.web.struts.DelegatingRequestProcessor"/>
</controller>
转载于:https://blog.51cto.com/4925054/1051988