when making a request, except for the rest at the beginning of remoting, struts will handle the request. How to configure web.xml
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<display-name>DJH</display-name>
<!-- Spring -->
<!-- 1.spring -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring-application-content.xml</param-value>
</context-param>
<!-- 2.Struts -->
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<!--apiStruts2-->
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/api/*</url-pattern>
</filter-mapping>
<!-- 3.Spring -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> <!-- -->
</listener>
<!--4.hessianServer-->
<!-- url-->
<servlet>
<servlet-name>serviceHessian</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<!--hessian servlet-servlet.xml-->
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:spring-hessian-server.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!--remotinghessianServer-->
<servlet-mapping>
<servlet-name>serviceHessian</servlet-name>
<url-pattern>/remoting/*</url-pattern>
</servlet-mapping>
<!-- end hessianServer-->
</web-app>