DWR3 Springmvc3.05 注解错误,望高人解决,铁分奉上,感激不尽
spring.xml 部分
<context:annotation-config />
<context:component-scan base-package="com" />
<dwr:configuration />
<!-- <dwr:annotation-config id="dwr-annos" />-->
<dwr:url-mapping />
<dwr:controller id="dwrController" debug="true">
<dwr:config-param name="allowScriptTagRemoting" value="true" />
<dwr:config-param name="crossDomainSessionSecurity" value="false" />
</dwr:controller>
<dwr:annotation-scan scanRemoteProxy="true" scanDataTransferObject="true" base-package="com" />
<bean class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter">
</bean>
<bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
<property name="order" value="1" />
</bean>
<bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping">
<property name="order" value="2" />
</bean>
class部分
@Service(value="testService")
@RemoteProxy(name="testService",creator = SpringCreator.class)
public class TestSerivce {
@RemoteMethod
public String test(){
return "test";
}
}
报错部分
<script type='text/javascript' src='<c:url value="/dwr/interface/testService.js" />'></script>
消息: 'testService' 未定义
控制台
ERROR org.directwebremoting.impl.DefaultCreatorManager - Class not found: 'testService'