[Restlet] restlet1.0集成spring的问题
gaofeng_867
2013-01-14
restlet1.0集成spring2,总是提示找不到一个bean:
Error creating bean with name 'component' defined in ServletContext resource [/WEB-INF/classes/applicationContext-rest.xml]: Cannot resolve reference to bean 'myrestRoute' while setting bean property 'defaultTarget';....... web.xml配置如下: <servlet> <servlet-name>restlet</servlet-name> <servlet-class>com.noelios.restlet.ext.spring.SpringServerServlet</servlet-class> <init-param> <param-name>org.restlet.Component</param-name> <param-value>component</param-value> </init-param> </servlet> applicationContext-rest.xml配置如下: <bean id="component" class="org.restlet.ext.spring.SpringComponent"> <property name="defaultTarget" ref="myrestRoute" /> </bean> <bean id="myrestRoute" class="org.restlet.ext.spring.SpringRouter"> <property name="attachments"> <map> <entry key="/customers/{custId}"> <bean class="org.restlet.ext.spring.SpringFinder"> <lookup-method name="createResource" bean="CustomerResource" /> </bean> </entry> </map> </property> </bean> |
相关讨论
相关资源推荐
- hello-cls:一个Node.js库,它为Node 10+实现了Continuation-Local Storage
- 微信小程序使用MQTT远程控制单片机——阿里云物联网平台
- 【软件测试】微信小程序自动化测试,Minium工具的简单使用
- Java网络程序员看Continuation
- C#中的尾递归与Continuation详解
- 初识Continuation
- jetty-continuation-8.1.8.v20121106-API文档-中文版.zip
- jetty-continuation-8.1.8.v20121106-API文档-中英对照版.zip
- WEBIM之Continuation方式实现
- playlist_continuation