类似这样的
<bean id="sendSMS" class="org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean"> <property name="serviceUrl"> <value>http://192.168.31.5:9090/services/smsService</value> </property> <property name="serviceInterface"> <value>com.**.**.service.SMSService</value> </property> <property name="httpInvokerRequestExecutor"> <bean class="org.springframework.remoting.httpinvoker.HttpComponentsHttpInvokerRequestExecutor"> <property name="httpClient"> <bean class="com.hejia.hermes.common.HttpClientFactoryBean"> <property name="username" value="***" /> <property name="password" value="****" /> </bean> </property> </bean> </property> </bean>
比如这样远程调用,在spring中直接写个接口就好了,jfinal不用配置该怎么写,请教波总@JFinal
项目:JFinal