https://github.com/juzi214032/oerp-docs
:bookmark: OERP 在线考试报名平台文档
https://github.com/juzi214032/oerp-docs
Last synced: 2 months ago
JSON representation
:bookmark: OERP 在线考试报名平台文档
- Host: GitHub
- URL: https://github.com/juzi214032/oerp-docs
- Owner: juzi214032
- License: mit
- Created: 2020-07-17T08:48:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T12:30:56.000Z (over 2 years ago)
- Last Synced: 2025-01-31T15:12:56.428Z (4 months ago)
- Homepage: https://juzi214032.github.io/OERP-docs
- Size: 7.78 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 介绍
OERP 是 Online Examination Registration Platform 的缩写,中文名称为:**在线考试报名平台**。
该仓库是 OERP 文档仓库,后端代码仓库[请前往](https://github.com/juzi214032/OERP)。
## 开发环境
- Java 8 及以上
- IDEA 2020.1
- **IDEA 需要安装插件 [Lombok](https://plugins.jetbrains.com/plugin/index?xmlId=Lombook%20Plugin)**## 快速开始
- 在你的数据库中新建一个名为`oerp`的数据库
- 导入仓库目录`/src/main/resources/oerp.sql`的 SQL 文件
- 修改`/src/main/resources/application.yml`中的`spring.datasource`配置为你自己的数据库信息
- 在 **IDEA** 或 Eclipse 中启动项目
- 访问网址 [http://localhost:8080/api/v1](http://localhost:8080/api/v1),看到如下文字代表系统启动成功:

## 目录结构
```
|-- src
|-- main
|-- java
| |-- com.juzi.oerp
| |-- OerpApplication.java -> SpringBoot 启动类
| |-- common -> 项目通用类
| | |-- constant -> 常量
| | |-- exception -> 自定义异常
| | |-- interceptor -> 拦截器(身份认证、权限拦截)
| | |-- jackson -> Jackson 相关
| |-- config -> 系统配置
| |-- controller -> 系统 API 接口
| |-- dao -> 自定义 DAO 层接口(主要做多表查询)
| |-- mapper -> MyBatis Plus Generator 生成的 DAO 接口(主要做单表 CRUD)
| |-- model -> Java POJO
| | |-- dto -> 数据传输对象(主要用在 Controller 与 Service 层之间)
| | |-- po -> 持久层对象(和数据库表一一对应,用在 DAO 层)
| | |-- vo -> 视图层对象(作为 Controller 的返回值)
| |-- service -> 服务层
| |-- util -> 通用工具类(JWT Token 生成等)
|-- resources
|-- application.yml -> Spring Boot 配置文件
|-- banner.txt
|-- oerp.sql -> 数据库 SQL 文件(数据库名为 oerp)
|-- mybatis
|-- xml
|-- dao -> 自定义 Mybatis Xml
|-- mapper -> MyBatis Plus Generator 生成的 MyBatis Xml
```