首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

ebay turmeric配置restful找不到页面的有关问题

2012-06-30 
ebay turmeric配置restful找不到页面的问题官方doc地址:https://www.ebayopensource.org/wiki/display/TUR

ebay turmeric配置restful找不到页面的问题

官方doc地址:https://www.ebayopensource.org/wiki/display/TURMERICDOC/Configuring+a+Service+for+Full+REST+Access

?

按照上边的方法配置,但总提示说找不到页面,火大啦。

?

最后冷静下来想想,原来是web.xml配置SPFServlet地址有问题:

eclipse plugin默认生成的是:

   <servlet-mapping>       <servlet-name>MyDemoServiceV1</servlet-name>        <url-pattern>/MyDemoServiceV1</url-pattern>   </servlet-mapping>

?

使用restfull风格后要改为通配符,如下:

   <servlet-mapping>       <servlet-name>MyDemoServiceV1</servlet-name>        <url-pattern>/MyDemoServiceV1/*</url-pattern>   </servlet-mapping>

?

如此?? http://localhost:8080/MyDemoServiceV1/print/ssss才能找SPFServlet

热点排行