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
相关推荐
牧场SZShepherd 2020-02-21
JudeJoo 2020-08-21
meleto 2020-08-15
lantingyue 2020-07-30
zyjj 2020-07-27
pengpengflyjhp 2020-07-19
htofly 2020-07-09
三动 2020-06-21
hyxinyu 2020-06-08
洗尽铅华 2020-06-07
shayuchaor 2020-06-07
xiamubawei 2020-06-04
方志朋 2020-05-30
一片荷叶 2020-05-27
spring艳 2020-05-16
zhangdy0 2020-05-06
80304053 2020-05-04
neweastsun 2020-05-04
shuiluobu 2020-05-01