如果正确写对了web.xml的话,启动服务,却没有出现Hessian Requires POST,建议可以在浏览器输入:项目后面加上你的业务接口类的名字
<servlet>
<servlet-name>customerService</servlet-name>
<servlet-class>com.caucho.hessian.server.HessianServlet</servlet-class>
<init-param>
<param-name>home-class</param-name> <!-- 业务实现类 -->
<param-value>cn.itcast.crm.service.impl.CustomerServiceImpl</param-value>
</init-param>
<init-param>
<param-name>home-api</param-name> <!-- 业务接口 -->
<param-value>cn.itcast.crm.service.CustomerService</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>customerService</servlet-name>
<url-pattern>/customerService</url-pattern>
</servlet-mapping>