package com.mycompany;
import com.googlecode.jsonrpc4j.JsonRpcError;
import com.googlecode.jsonrpc4j.JsonRpcErrors;
import com.googlecode.jsonrpc4j.JsonRpcService;
import org.springframework.stereotype.Service;
@JsonRpcService("/path/to/UserService")
public interface UserService {
@JsonRpcErrors({
@JsonRpcError(exception=NullPointerException.class,
code=-5678),
@JsonRpcError(exception=Throwable.class,code=-187)
})
User createUser(String name,Integer age) throws Exception;
int getUserCount();
}
没有合适的资源?快使用搜索试试~ 我知道了~
Jsonrpc4j+Spring自动扫描配置
共62个文件
xml:26个
jar:14个
class:12个
需积分: 9 18 下载量 123 浏览量
2018-03-15
09:11:53
上传
评论
收藏 6.08MB 7Z 举报
温馨提示
一个JsonRpc4j+Spring的demo,适合与新接触JsonRpc的同学学习
资源推荐
资源详情
资源评论
收起资源包目录
rpc.7z (62个子文件)
rpc
pom.xml 1KB
target
classes
com
mycompany
User.class 1KB
SchoolService.class 272B
UserService.class 617B
Test
RpcTest.class 1KB
UserServiceImpl.class 1001B
SchoolServiceImpl.class 568B
applicationContext.xml 1KB
rpc
META-INF
MANIFEST.MF 88B
WEB-INF
web.xml 1KB
view
classes
com
mycompany
User.class 1KB
SchoolService.class 272B
UserService.class 617B
Test
RpcTest.class 1KB
UserServiceImpl.class 1001B
SchoolServiceImpl.class 568B
applicationContext.xml 1KB
lib
jsonrpc4j-1.5.0.jar 127KB
base64-2.3.9.jar 17KB
spring-aop-4.3.8.RELEASE.jar 372KB
spring-webmvc-4.3.8.RELEASE.jar 894KB
spring-expression-4.3.8.RELEASE.jar 257KB
spring-beans-4.3.8.RELEASE.jar 745KB
jackson-databind-2.8.5.jar 1.18MB
slf4j-api-1.7.22.jar 40KB
spring-core-4.3.8.RELEASE.jar 1.07MB
spring-web-4.3.8.RELEASE.jar 799KB
commons-logging-1.2.jar 60KB
jackson-annotations-2.8.5.jar 54KB
jackson-core-2.8.5.jar 274KB
spring-context-4.3.8.RELEASE.jar 1.09MB
index.jsp 57B
generated-sources
annotations
src
main
webapp
WEB-INF
web.xml 1KB
index.jsp 57B
resources
applicationContext.xml 1KB
java
com
mycompany
User.java 554B
UserServiceImpl.java 487B
Test
RpcTest.java 489B
UserService.java 580B
SchoolService.java 280B
SchoolServiceImpl.java 302B
.idea
misc.xml 566B
modules.xml 246B
compiler.xml 618B
workspace.xml 55KB
libraries
Maven__org_springframework_spring_webmvc_4_3_8_RELEASE.xml 630B
Maven__org_springframework_spring_beans_4_3_8_RELEASE.xml 623B
Maven__org_slf4j_slf4j_api_1_7_22.xml 513B
Maven__org_springframework_spring_core_4_3_8_RELEASE.xml 616B
Maven__com_fasterxml_jackson_core_jackson_annotations_2_8_5.xml 644B
Maven__com_fasterxml_jackson_core_jackson_databind_2_8_5.xml 623B
Maven__org_springframework_spring_context_4_3_8_RELEASE.xml 637B
Maven__org_springframework_spring_web_4_3_8_RELEASE.xml 609B
Maven__commons_logging_commons_logging_1_2.xml 558B
Maven__org_springframework_spring_aop_4_3_8_RELEASE.xml 609B
Maven__org_springframework_spring_expression_4_3_8_RELEASE.xml 658B
Maven__com_fasterxml_jackson_core_jackson_core_2_8_5.xml 595B
Maven__com_github_briandilley_jsonrpc4j_jsonrpc4j_1_5_0.xml 598B
Maven__net_iharder_base64_2_3_9.xml 493B
artifacts
rpc_war_exploded.xml 2KB
rpc_war.xml 275B
inspectionProfiles
rpc.iml 3KB
共 62 条
- 1
资源评论
crazy960
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功