apple987 / api-master

api-master是springMVC项目,基于maven多模块和dubbo的rpc方式整合使用。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

api-master是springMVC项目,基于maven多模块依赖,采用dubbo远程调用,目前spring升级到4.3.13版本,欢迎大家提出意见,您的宝贵意见,是我们进步的动力。

项目说明

  • 项目基于maven的多profile环境配置,打包时需要选择(test/pro/dev)打包运行的环境。

**项目特点**
- 友好的代码结构及注释,便于阅读及二次开发 。
- 前端页面采用jsp+freemaker,多视图解析处理,优先jsp。
- 采用bootstrap-table强大灵活的表格插件渲染数据。
- 后端配置swagger在线文档,方便编写API接口文档。
- 引入fastjson,redis配置。

**项目结构**
api-master
├─doc (isec,wepull)项目SQL语句

├─api-web:web服务端,带有简单的页面显示

├─api-facade:采用dubbo通讯服务,耦合api-web和api-provider模块

├─api-provider: 依赖api-facade和api-service模块

├─api-back:连接isec数据库的dao层

├─api-risk:连接wepull数据库的dao层

├─api-service:事务控制,分布式事务,采用atomikos方式

├─api-util:基础工具类,其他模块依赖此模块

**环境配置:**
- 1.项目依赖zookeeper,redis工具。
- 2.doc目录里面有初始化sql,运行项目前,请先创建mysql。
- 3.工具地址:https://pan.baidu.com/s/1Bm7udGJc40xEENFgnJjsIw

**启动说明:**
- 1.创建mysql数据库isec和wepull实例,运行doc目录里面的sql文件。
- 2.启动redis6386单机,(密码:qdone)
- 3.eclipse工具下,选中api-master节点,运行maven build:
-         goals:clean install
-         profile:test/pro/dev(三选一,必填)
-         勾选 update snapshots和skip tests
-         执行run之后,拷贝target目录下mvc.war
- 4.配置tomcat1,加入api-provider.war,启动tomcat1
- 5.配置tomcat2,加入api-web.war,启动tomcat2
- 6.访问http://localhost:ip:port/api-web/swagger-ui.html

**用户反馈:**
- Git仓库: https://github.com/apple987/api-master
- 码云仓库: https://gitee.com/bootstrap2table/api-master
- 邮箱地址: m15171479289@163.com

About

api-master是springMVC项目,基于maven多模块和dubbo的rpc方式整合使用。

License:Apache License 2.0


Languages

Language:JavaScript 90.0%Language:Java 7.6%Language:CSS 2.3%Language:HTML 0.1%