pull/562/head
Keen 2020-12-24 22:19:15 +08:00
parent 1556f13379
commit 7b90ef8c2b
15 changed files with 149 additions and 1 deletions

View File

@ -1,6 +1,5 @@
<h1 style="text-align: center">EL-ADMIN 后台管理系统</h1>
<div style="text-align: center">
[![AUR](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg)](https://github.com/elunez/eladmin/blob/master/LICENSE)
[![star](https://gitee.com/elunez/eladmin/badge/star.svg?theme=white)](https://gitee.com/elunez/eladmin)
[![GitHub stars](https://img.shields.io/github/stars/elunez/eladmin.svg?style=social&label=Stars)](https://github.com/elunez/eladmin)
@ -9,6 +8,7 @@
</div>
#### 项目简介
一个基于 Spring Boot 2.1.0 、 Spring Boot Jpa、 JWT、Spring Security、Redis、Vue的前后端分离的后台管理系统
**开发文档:** [https://el-admin.vip](https://el-admin.vip)

View File

@ -19,6 +19,13 @@
</properties>
<dependencies>
<!--测试模块-->
<dependency>
<groupId>me.zhengjie</groupId>
<artifactId>eladmin-test</artifactId>
<version>2.6</version>
</dependency>
<!-- 代码生成模块 -->
<dependency>
<groupId>me.zhengjie</groupId>
@ -42,6 +49,7 @@
<!-- Spring boot websocket -->
<dependency>
<groupId>org.springframework.boot</groupId>
<!-- <artifactId>spring-boot-starter-websocket</artifactId>-->
<artifactId>spring-boot-starter-websocket</artifactId>
</dependency>
@ -86,6 +94,17 @@
<artifactId>oshi-core</artifactId>
<version>5.3.6</version>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>1.5.22</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>1.5.22</version>
</dependency>
</dependencies>
<!-- 打包 -->

16
eladmin-test/pom.xml Normal file
View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>eladmin</artifactId>
<groupId>me.zhengjie</groupId>
<version>2.6</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>eladmin-test</artifactId>
<name>测试模块</name>
</project>

View File

@ -46,5 +46,25 @@
<artifactId>alipay-sdk-java</artifactId>
<version>${alipay.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot</artifactId>
<version>2.4.0</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.3.1</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>2.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>
</dependencies>
</project>

BIN
lib/javax.annotation.jar Normal file

Binary file not shown.

BIN
lib/javax.ejb.jar Normal file

Binary file not shown.

BIN
lib/javax.jms.jar Normal file

Binary file not shown.

BIN
lib/javax.persistence.jar Normal file

Binary file not shown.

BIN
lib/javax.resource.jar Normal file

Binary file not shown.

BIN
lib/javax.servlet.jar Normal file

Binary file not shown.

BIN
lib/javax.servlet.jsp.jar Normal file

Binary file not shown.

Binary file not shown.

BIN
lib/javax.transaction.jar Normal file

Binary file not shown.

View File

@ -15,6 +15,7 @@
<module>eladmin-system</module>
<module>eladmin-tools</module>
<module>eladmin-generator</module>
<module>eladmin-test</module>
</modules>
<name>EL-ADMIN 后台管理</name>

92
process.md Normal file
View File

@ -0,0 +1,92 @@
<h1 style="text-align: center">EL-ADMIN 后台管理系统学习流程记录</h1>
【EL-Admin】[EL-Admin手册](https://el-admin.vip/guide/ksks.html#%E5%BC%80%E5%8F%91%E5%87%86%E5%A4%87)
# 1. 项目依赖
## 环境配置
1、JDK1.8+
安装教程https://www.runoob.com/java/java-environment-setup.html
2、Redis 3.0+
安装教程https://www.runoob.com/redis/redis-install.html
3、Maven 3.0+
安装教程https://www.runoob.com/maven/maven-setup.html
4、MYSQL 5.5.0+
安装教程https://www.runoob.com/mysql/mysql-install.html
5、Node v10+
安装教程https://www.runoob.com/nodejs/nodejs-install-setup.html
> 前端安装完 node 后,最好设置下淘宝的镜像源,不建议使用 cnpm可能会出现奇怪的问题
```bash
npm config set registry https://registry.npm.taobao.org
配置后可通过下面方式来验证是否成功
npm config get registry
在 ~/.npmrc 加入下面内容,可以避免安装 node-sass 失败
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
.npmrc 文件位于
winC:\Users\[你的账户名称]\.npmrc
linux直接使用 vi ~/.npmrc
```
## 开发准备
1. idea安装lombok插件
2. 使用MapStruct映射实体[熟悉MapStruct](https://www.jianshu.com/p/3f20ca1a93b0)
3. Spring boot 的基础:[Spring Boot 2.0 学习](https://github.com/ityouknow/spring-boot-examples)
4. Vue基础推荐入门视屏教程 [网易云课堂](https://study.163.com/course/courseMain.htm?courseId=1004711010)
## 调试后端项目
1. 依赖不能导入
重新下载依赖,先删除.idea文件再重新import项目后在pom.xml中点右键run maven install 即可解决
2. Access denied for user 'admin'@'localhost' (using password: YES)
检查 1.账号密码问题 2. 远程登录被拒绝需要use mysql; select host ,user from user; //查看结果是不是root用户仅允许本地 localhost 登录是的话就要修改它的host为%表示任意IP地址都可以登录
update user set host =% where user=root; flushprivileges 刷新缓存
3. 启动后使用webstrom运行web项目。
## 后端项目结构
- eladmin-common 为系统的公共模块,各种工具类,公共配置存在该模块
- eladmin-system 为系统核心模块也是项目入口模块,也是最终需要打包部署的模块
- eladmin-logging 为系统的日志模块,其他模块如果需要记录日志需要引入该模块
- eladmin-tools 为第三方工具模块,包含:图床、邮件、云存储、本地存储、支付宝
- eladmin-generator 为系统的代码生成模块,代码生成的模板在 system 模块中
## 详细结构
```text
- eladmin-common 公共模块
- annotation 为系统自定义注解
- aspect 自定义注解的切面
- base 提供了Entity、DTO基类和mapstruct的通用mapper
- config 自定义权限实现、redis配置、swagger配置、Rsa配置等
- exception 项目统一异常的处理
- utils 系统通用工具类
- eladmin-system 系统核心模块(系统启动入口)
- config 配置跨域与静态资源,与数据权限
- thread 线程池相关
- modules 系统相关模块(登录授权、系统监控、定时任务、运维管理等)
- eladmin-logging 系统日志模块
- eladmin-tools 系统第三方工具模块
- eladmin-generator 系统代码生成模块
```
# 2. 后端手册
## 2.1 新建模块
## 2.2 权限控制
> 权限控制:
>
>