spring3注解 struts2 action访问不到
ssh集成(struts2,spring3,hibernate4)
使用spring3的注解,项目启动后点击登录访问不到action
求懂得spring3注解技术的帮忙指点一下!谢谢了!
HTTP Status 404 - /oa/login.action
--------------------------------------------------------------------------------
type Status report
message /oa/login.action
description The requested resource is not available.
--------------------------------------------------------------------------------
Apache Tomcat/7.0.47
配置如下:
web.xml
--------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<display-name>bonsoftoa</display-name>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
<init-param>
<param-name>config</param-name>
<param-value>struts-default.xml,struts-plugin.xml,/struts.xml</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>sessionTimeout</param-name>
<param-value>1800</param-value>
</context-param>
<listener>
<listener-class>com.oa.util.session.AppSessionListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/classes/spring/**/*.xml</param-value>
</context-param>
</web-app>
struts.xml
------------------------------------------------------------------------------------------------
<?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">
<struts>
<constant name="struts.objectFactory" value="spring" />
<package name="web" extends="struts-default">
<action name="login" class="loginAction">
<result name="success">/index.jsp</result>
</action>
</package>
</struts>
spring的配置文件
----------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:p="http://www.springframework.org/sche