# fast-rent **Repository Path**: fastrent/fast-rent ## Basic Information - **Project Name**: fast-rent - **Description**: 快租后端 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 2 - **Created**: 2017-06-19 - **Last Updated**: 2023-09-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 文档 [showdocs](https://www.showdoc.cc/4141769497675?page_id=83753456911132) ## 项目介绍 基于Spring+SpringMVC+Mybatis mvvm开发系统架构 ### 组织结构 ``` fastrent ├── fastrent-common -- 公共模块 ├── fastrent-mcenter -- 用户系统 ├── fastrent-rent -- 租房系统 ├── fastrent-chat -- 聊天模块 ├── fastrent-front -- 网站接口 ``` #### 后端技术: 技术 | 名称 | 官网 ----|------|---- Spring Framework | 容器 | [http://projects.spring.io/spring-framework/](http://projects.spring.io/spring-framework/) SpringMVC | MVC框架 | [http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#mvc](http://docs.spring.io/spring/docs/current/spring-framework-reference/htmlsingle/#mvc) MyBatis | ORM框架 | [http://www.mybatis.org/mybatis-3/zh/index.html](http://www.mybatis.org/mybatis-3/zh/index.html) c3p0 | 数据库连接池 | [http://www.mchange.com/projects/c3p0/](http://www.mchange.com/projects/c3p0/) Guava Cache | 进程内缓存框架 | [https://github.com/google/guava](https://github.com/google/guava) logback | 日志框架 | [https://logback.qos.ch](https://logback.qos.ch) slf4j | 日志组件 | [https://www.slf4j.org](https://www.slf4j.org) Maven | 项目构建管理 | [http://maven.apache.org/](http://maven.apache.org/) #### 前端技术: 技术 | 名称 | 官网 ----|------|---- vuejs|渐进式MVVM框架|[https://vuejs.org/](https://vuejs.org/) Nodejs|服务器端js, 引领前端技术变革|[https://nodejs.org/](https://nodejs.org/) #### 架构图 ![模块](https://i.imgur.com/K2biLA4.png) #### 模块介绍 > fastrent-common Spring+SpringMVC+Mybatis框架集成公共模块,包括公共配置、通用BaseService、工具类等。 > fastrent-mcenter 通用用户管理模块,实现最常用的用户注册、登录、资料管理、个人中心、第三方登录等基本需求。 > fastrent-rent 房源流程处理模块,实现房源上架、管理、出租、推荐,订单生成与管理,用户互评与收藏房源。 > fastrent-chat 用户聊天处理模块。 > fastrent-front 前端实现整合模块,将业务层具体的方法整合为一个模块,包装为api为不同的前端需求所调用。 #### 开发工具 - MySql: 数据库 - Tomcat: 应用服务器 - Git: 版本管理 - IntelliJ IDEA/esclipse: 后端开发IDE - webstorm/atom/vsc: 前端开发IDE - Navicat for MySQL: 数据库客户端 #### 开发环境: - Jdk8+ - Mysql5.5+ - node8.0+ - npm5.0+ - vue.js2.0+ ## 开发指南: - 1、本机安装Jdk8、Mysql、node并**启动相关服务**,使用默认配置默认路径即可 - 2、克隆源代码到本地并打开,**推荐使用IntelliJ IDEA**,本地编译并安装到本地maven仓库 - 3、项目根目录下lib/目录下jar按照目录下的readme演示版本打入本地maven仓库 ### 框架规范约定 - spring配置文件,命名规则为`spring-*.xml` - springmvc配置加到对应模块的`spring-web.xml`文件里 - 类名:首字母大写驼峰规则;方法名:首字母小写驼峰规则;常量:全大写;变量:首字母小写驼峰规则,尽量非缩写 - 配置文件放到`src/main/resources`目录下 - 模块命名为`项目`-`子项目`-`业务`,如`fastrent-mcenter-service` - bean实体类,需要在名叫`bean`的包下,命名规则为数据表转驼峰规则,所有的除字典类以外的的实体类继承BaseBean - mybaits配置文件,需要在名叫`mapper`的包下,需要分页的id以`ByPage`结尾 ### 远程sql数据库 - 可链接此数据库拷贝数据到本地,链接更流程 -jdbc:mysql://122.152.194.171:3306/fast_rent_house -账号:root -密码:123456