spring mvc hessian 整合
最近在整合spring mvc 和 hessian的时候 ,应该对spring mvc的HandlerMapping 的映射机制不太清楚。。花了老长时间!!最后还是解决了!!在这里把代码给贴出来 大家分享下 web.xml[code="java"] webapp contextConfigLocation WEB-INF/osgi-context.xml WEB-INF/applicationContext.xml WEB-INF/springMVC-servlet.xml contextClass org.eclipse.virgo.web.dm.ServerOsgiBundleXmlWebApplicationContext org.springframework.web.context.ContextLoaderListener springMVC org.springframework.web.servlet.DispatcherServlet 1 springMVC *.do hessian-servlet com.artogrid.hessian.servlet.CustomDispatcherServlet contextConfigLocation WEB-INF/hessian-remoting.xml 2 hessian-servlet /hessian/* index.jsp [/code] 注意:com.artogrid.hessian.servlet.CustomDispatcherServlet 是我自己集成了下DispatcherServlet 应该我想得到 WebApplicationContext这个上下文 为了在使用hessian的时候我可以知道bean的名称我找到具体的bean的事例!! springMVC-servlet.xml[code="java"] [/code] hessian-remoting.xml的代码[code="java"] com.artogrid.hessian.service.IHessian [/code] 注意:: [code="java"] [/code] 是能否成功的关键 我已经测试过了spring mvc 和 hessian 都是可以使用的!!由于我的工程是OSGI virgo 工程代码不好分享!!