【发布时间】:2015-12-11 03:37:52
【问题描述】:
Caused by: java.lang.IllegalArgumentException: Service [logService] is a String rather than an actual service reference: Have you accidentally specified the service bean name as value instead of as reference?
这是我的 ServerAppContext 代码:
<bean id="entityRmiServiceExporter" class="org.springframework.remoting.rmi.RmiServiceExporter">
<property name="serviceName" value="log-service"/>
<property name="serviceInterface" value="com.hippie.blog.service.LogService"/>
<property name="service" value="logService"/>
<property name="registryPort" value="2020"/>
</bean>
<bean id="logService" class="com.hippie.blog.service.LogServiceImpl">
</bean>
我似乎无法让它工作。我应该放什么
property name="service" value="logService"
因为那是错误所指的行。
我需要把它转给我的LogServiceImpl吗?
【问题讨论】:
标签: java spring web-applications rmi