Compare commits
No commits in common. "master" and "master_fei" have entirely different histories.
master
...
master_fei
42
README.md
42
README.md
|
@ -1,26 +1,26 @@
|
||||||
## 系统模块
|
## 系统模块
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
com.muyu
|
com.etl
|
||||||
├── muyu-ui // 前端框架 [80]
|
├── etl-ui // 前端框架 [80]
|
||||||
├── muyu-gateway // 网关模块 [8080]
|
├── etl-gateway // 网关模块 [8080]
|
||||||
├── muyu-auth // 认证中心 [9200]
|
├── etl-auth // 认证中心 [9200]
|
||||||
├── muyu-common // 通用模块
|
├── etl-common // 通用模块
|
||||||
│ └── muyu-common-core // 核心模块
|
│ └── etl-common-core // 核心模块
|
||||||
│ └── muyu-common-datascope // 权限范围
|
│ └── etl-common-datascope // 权限范围
|
||||||
│ └── muyu-common-datasource // 多数据源
|
│ └── etl-common-datasource // 多数据源
|
||||||
│ └── muyu-common-log // 日志记录
|
│ └── etl-common-log // 日志记录
|
||||||
│ └── muyu-common-redis // 缓存服务
|
│ └── etl-common-redis // 缓存服务
|
||||||
│ └── muyu-common-seata // 分布式事务
|
│ └── etl-common-seata // 分布式事务
|
||||||
│ └── muyu-common-security // 安全模块
|
│ └── etl-common-security // 安全模块
|
||||||
│ └── muyu-common-swagger // 系统接口
|
│ └── etl-common-swagger // 系统接口
|
||||||
│ └── muyu-common-system // 系统基础
|
│ └── etl-common-system // 系统基础
|
||||||
├── muyu-modules // 业务模块
|
├── etl-modules // 业务模块
|
||||||
│ └── muyu-system // 系统模块 [9201]
|
│ └── etl-system // 系统模块 [9201]
|
||||||
│ └── muyu-gen // 代码生成 [9202]
|
│ └── etl-gen // 代码生成 [9202]
|
||||||
│ └── muyu-job // 定时任务 [9203]
|
│ └── etl-job // 定时任务 [9203]
|
||||||
│ └── muyu-file // 文件服务 [9300]
|
│ └── etl-file // 文件服务 [9300]
|
||||||
├── muyu-visual // 图形化管理模块
|
├── etl-visual // 图形化管理模块
|
||||||
│ └── muyu-visual-monitor // 监控中心 [9100]
|
│ └── etl-visual-monitor // 监控中心 [9100]
|
||||||
├──pom.xml // 公共依赖
|
├──pom.xml // 公共依赖
|
||||||
~~~
|
~~~
|
||||||
|
|
|
@ -4,11 +4,11 @@ echo [<5B><>Ϣ] ʹ<><CAB9>Jar<61><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Auth<74><68><EFBFBD>̡<EFBFBD>
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
cd %~dp0
|
cd %~dp0
|
||||||
cd ../muyu-auth/target
|
cd ../etl-auth/target
|
||||||
|
|
||||||
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
||||||
|
|
||||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar muyu-auth.jar
|
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar etl-auth.jar
|
||||||
|
|
||||||
cd bin
|
cd bin
|
||||||
pause
|
pause
|
||||||
|
|
|
@ -4,11 +4,11 @@ echo [<5B><>Ϣ] ʹ<><CAB9>Jar<61><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Gateway<61><79><EFBFBD>̡<EFBFBD>
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
cd %~dp0
|
cd %~dp0
|
||||||
cd ../muyu-gateway/target
|
cd ../etl-gateway/target
|
||||||
|
|
||||||
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
||||||
|
|
||||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar muyu-gateway.jar
|
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar etl-gateway.jar
|
||||||
|
|
||||||
cd bin
|
cd bin
|
||||||
pause
|
pause
|
||||||
|
|
|
@ -4,11 +4,11 @@ echo [<5B><>Ϣ] ʹ<><CAB9>Jar<61><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Modules-File<6C><65><EFBFBD>̡<EFBFBD>
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
cd %~dp0
|
cd %~dp0
|
||||||
cd ../muyu-modules/muyu-file/target
|
cd ../etl-modules/etl-file/target
|
||||||
|
|
||||||
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
||||||
|
|
||||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar muyu-modules-file.jar
|
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar etl-modules-file.jar
|
||||||
|
|
||||||
cd bin
|
cd bin
|
||||||
pause
|
pause
|
||||||
|
|
|
@ -4,11 +4,11 @@ echo [<5B><>Ϣ] ʹ<><CAB9>Jar<61><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Modules-Gen<65><6E><EFBFBD>̡<EFBFBD>
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
cd %~dp0
|
cd %~dp0
|
||||||
cd ../muyu-modules/muyu-gen/target
|
cd ../etl-modules/etl-gen/target
|
||||||
|
|
||||||
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
||||||
|
|
||||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar muyu-modules-gen.jar
|
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar etl-modules-gen.jar
|
||||||
|
|
||||||
cd bin
|
cd bin
|
||||||
pause
|
pause
|
||||||
|
|
|
@ -4,11 +4,11 @@ echo [<5B><>Ϣ] ʹ<><CAB9>Jar<61><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Modules-Job<6F><62><EFBFBD>̡<EFBFBD>
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
cd %~dp0
|
cd %~dp0
|
||||||
cd ../muyu-modules/muyu-job/target
|
cd ../etl-modules/etl-job/target
|
||||||
|
|
||||||
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
||||||
|
|
||||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar muyu-modules-job.jar
|
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar etl-modules-job.jar
|
||||||
|
|
||||||
cd bin
|
cd bin
|
||||||
pause
|
pause
|
||||||
|
|
|
@ -4,11 +4,11 @@ echo [<5B><>Ϣ] ʹ<><CAB9>Jar<61><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Modules-System<65><6D><EFBFBD>̡<EFBFBD>
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
cd %~dp0
|
cd %~dp0
|
||||||
cd ../muyu-modules/muyu-system/target
|
cd ../etl-modules/etl-system/target
|
||||||
|
|
||||||
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
||||||
|
|
||||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar muyu-modules-system.jar
|
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar etl-modules-system.jar
|
||||||
|
|
||||||
cd bin
|
cd bin
|
||||||
pause
|
pause
|
||||||
|
|
|
@ -4,11 +4,11 @@ echo [<5B><>Ϣ] ʹ<><CAB9>Jar<61><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Monitor<6F><72><EFBFBD>̡<EFBFBD>
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
cd %~dp0
|
cd %~dp0
|
||||||
cd ../muyu-visual/muyu-monitor/target
|
cd ../etl-visual/etl-monitor/target
|
||||||
|
|
||||||
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
set JAVA_OPTS=-Xms512m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=512m
|
||||||
|
|
||||||
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar muyu-visual-monitor.jar
|
java -Dfile.encoding=utf-8 %JAVA_OPTS% -jar etl-visual-monitor.jar
|
||||||
|
|
||||||
cd bin
|
cd bin
|
||||||
pause
|
pause
|
||||||
|
|
|
@ -14,28 +14,28 @@ cp ../sql/ry_config_20220929.sql ./mysql/db
|
||||||
|
|
||||||
# copy html
|
# copy html
|
||||||
echo "begin copy html "
|
echo "begin copy html "
|
||||||
cp -r ../muyu-ui/dist/** ./nginx/html/dist
|
cp -r ../etl-ui/dist/** ./nginx/html/dist
|
||||||
|
|
||||||
|
|
||||||
# copy jar
|
# copy jar
|
||||||
echo "begin copy muyu-gateway "
|
echo "begin copy etl-gateway "
|
||||||
cp ../muyu-gateway/target/muyu-gateway.jar ./muyu/gateway/jar
|
cp ../etl-gateway/target/etl-gateway.jar ./etl/gateway/jar
|
||||||
|
|
||||||
echo "begin copy muyu-auth "
|
echo "begin copy etl-auth "
|
||||||
cp ../muyu-auth/target/muyu-auth.jar ./muyu/auth/jar
|
cp ../etl-auth/target/etl-auth.jar ./etl/auth/jar
|
||||||
|
|
||||||
echo "begin copy muyu-visual "
|
echo "begin copy etl-visual "
|
||||||
cp ../muyu-visual/muyu-monitor/target/muyu-visual-monitor.jar ./muyu/visual/monitor/jar
|
cp ../etl-visual/etl-monitor/target/etl-visual-monitor.jar ./etl/visual/monitor/jar
|
||||||
|
|
||||||
echo "begin copy muyu-modules-system "
|
echo "begin copy etl-modules-system "
|
||||||
cp ../muyu-modules/muyu-system/target/muyu-modules-system.jar ./muyu/modules/system/jar
|
cp ../etl-modules/etl-system/target/etl-modules-system.jar ./etl/modules/system/jar
|
||||||
|
|
||||||
echo "begin copy muyu-modules-file "
|
echo "begin copy etl-modules-file "
|
||||||
cp ../muyu-modules/muyu-file/target/muyu-modules-file.jar ./muyu/modules/file/jar
|
cp ../etl-modules/etl-file/target/etl-modules-file.jar ./etl/modules/file/jar
|
||||||
|
|
||||||
echo "begin copy muyu-modules-job "
|
echo "begin copy etl-modules-job "
|
||||||
cp ../muyu-modules/muyu-job/target/muyu-modules-job.jar ./muyu/modules/job/jar
|
cp ../etl-modules/etl-job/target/etl-modules-job.jar ./etl/modules/job/jar
|
||||||
|
|
||||||
echo "begin copy muyu-modules-gen "
|
echo "begin copy etl-modules-gen "
|
||||||
cp ../muyu-modules/muyu-gen/target/muyu-modules-gen.jar ./muyu/modules/gen/jar
|
cp ../etl-modules/etl-gen/target/etl-modules-gen.jar ./etl/modules/gen/jar
|
||||||
|
|
||||||
|
|
|
@ -26,12 +26,12 @@ port(){
|
||||||
|
|
||||||
# 启动基础环境(必须)
|
# 启动基础环境(必须)
|
||||||
base(){
|
base(){
|
||||||
docker-compose up -d muyu-mysql muyu-redis muyu-nacos
|
docker-compose up -d etl-mysql etl-redis etl-nacos
|
||||||
}
|
}
|
||||||
|
|
||||||
# 启动程序模块(必须)
|
# 启动程序模块(必须)
|
||||||
modules(){
|
modules(){
|
||||||
docker-compose up -d muyu-nginx muyu-gateway muyu-auth muyu-modules-system
|
docker-compose up -d etl-nginx etl-gateway etl-auth etl-modules-system
|
||||||
}
|
}
|
||||||
|
|
||||||
# 关闭所有环境/模块
|
# 关闭所有环境/模块
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
version : '3.8'
|
version : '3.8'
|
||||||
services:
|
services:
|
||||||
muyu-nacos:
|
etl-nacos:
|
||||||
container_name: muyu-nacos
|
container_name: etl-nacos
|
||||||
image: nacos/nacos-server
|
image: nacos/nacos-server
|
||||||
build:
|
build:
|
||||||
context: ./nacos
|
context: ./nacos
|
||||||
|
@ -15,9 +15,9 @@ services:
|
||||||
- "9848:9848"
|
- "9848:9848"
|
||||||
- "9849:9849"
|
- "9849:9849"
|
||||||
depends_on:
|
depends_on:
|
||||||
- muyu-mysql
|
- etl-mysql
|
||||||
muyu-mysql:
|
etl-mysql:
|
||||||
container_name: muyu-mysql
|
container_name: etl-mysql
|
||||||
image: mysql:5.7
|
image: mysql:5.7
|
||||||
build:
|
build:
|
||||||
context: ./mysql
|
context: ./mysql
|
||||||
|
@ -38,103 +38,103 @@ services:
|
||||||
environment:
|
environment:
|
||||||
MYSQL_DATABASE: 'ry-cloud'
|
MYSQL_DATABASE: 'ry-cloud'
|
||||||
MYSQL_ROOT_PASSWORD: password
|
MYSQL_ROOT_PASSWORD: password
|
||||||
muyu-redis:
|
etl-redis:
|
||||||
container_name: muyu-redis
|
container_name: etl-redis
|
||||||
image: redis
|
image: redis
|
||||||
build:
|
build:
|
||||||
context: ./redis
|
context: ./redis
|
||||||
ports:
|
ports:
|
||||||
- "6379:6379"
|
- "6379:6379"
|
||||||
volumes:
|
volumes:
|
||||||
- ./redis/conf/redis.conf:/home/muyu/redis/redis.conf
|
- ./redis/conf/redis.conf:/home/etl/redis/redis.conf
|
||||||
- ./redis/data:/data
|
- ./redis/data:/data
|
||||||
command: redis-server /home/muyu/redis/redis.conf
|
command: redis-server /home/etl/redis/redis.conf
|
||||||
muyu-nginx:
|
etl-nginx:
|
||||||
container_name: muyu-nginx
|
container_name: etl-nginx
|
||||||
image: nginx
|
image: nginx
|
||||||
build:
|
build:
|
||||||
context: ./nginx
|
context: ./nginx
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx/html/dist:/home/muyu/projects/muyu-ui
|
- ./nginx/html/dist:/home/etl/projects/etl-ui
|
||||||
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
|
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
|
||||||
- ./nginx/logs:/var/log/nginx
|
- ./nginx/logs:/var/log/nginx
|
||||||
- ./nginx/conf.d:/etc/nginx/conf.d
|
- ./nginx/conf.d:/etc/nginx/conf.d
|
||||||
depends_on:
|
depends_on:
|
||||||
- muyu-gateway
|
- etl-gateway
|
||||||
links:
|
links:
|
||||||
- muyu-gateway
|
- etl-gateway
|
||||||
muyu-gateway:
|
etl-gateway:
|
||||||
container_name: muyu-gateway
|
container_name: etl-gateway
|
||||||
build:
|
build:
|
||||||
context: ./muyu/gateway
|
context: ./etl/gateway
|
||||||
dockerfile: dockerfile
|
dockerfile: dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
depends_on:
|
depends_on:
|
||||||
- muyu-redis
|
- etl-redis
|
||||||
links:
|
links:
|
||||||
- muyu-redis
|
- etl-redis
|
||||||
muyu-auth:
|
etl-auth:
|
||||||
container_name: muyu-auth
|
container_name: etl-auth
|
||||||
build:
|
build:
|
||||||
context: ./muyu/auth
|
context: ./etl/auth
|
||||||
dockerfile: dockerfile
|
dockerfile: dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "9200:9200"
|
- "9200:9200"
|
||||||
depends_on:
|
depends_on:
|
||||||
- muyu-redis
|
- etl-redis
|
||||||
links:
|
links:
|
||||||
- muyu-redis
|
- etl-redis
|
||||||
muyu-modules-system:
|
etl-modules-system:
|
||||||
container_name: muyu-modules-system
|
container_name: etl-modules-system
|
||||||
build:
|
build:
|
||||||
context: ./muyu/modules/system
|
context: ./etl/modules/system
|
||||||
dockerfile: dockerfile
|
dockerfile: dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "9201:9201"
|
- "9201:9201"
|
||||||
depends_on:
|
depends_on:
|
||||||
- muyu-redis
|
- etl-redis
|
||||||
- muyu-mysql
|
- etl-mysql
|
||||||
links:
|
links:
|
||||||
- muyu-redis
|
- etl-redis
|
||||||
- muyu-mysql
|
- etl-mysql
|
||||||
muyu-modules-gen:
|
etl-modules-gen:
|
||||||
container_name: muyu-modules-gen
|
container_name: etl-modules-gen
|
||||||
build:
|
build:
|
||||||
context: ./muyu/modules/gen
|
context: ./etl/modules/gen
|
||||||
dockerfile: dockerfile
|
dockerfile: dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "9202:9202"
|
- "9202:9202"
|
||||||
depends_on:
|
depends_on:
|
||||||
- muyu-mysql
|
- etl-mysql
|
||||||
links:
|
links:
|
||||||
- muyu-mysql
|
- etl-mysql
|
||||||
muyu-modules-job:
|
etl-modules-job:
|
||||||
container_name: muyu-modules-job
|
container_name: etl-modules-job
|
||||||
build:
|
build:
|
||||||
context: ./muyu/modules/job
|
context: ./etl/modules/job
|
||||||
dockerfile: dockerfile
|
dockerfile: dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "9203:9203"
|
- "9203:9203"
|
||||||
depends_on:
|
depends_on:
|
||||||
- muyu-mysql
|
- etl-mysql
|
||||||
links:
|
links:
|
||||||
- muyu-mysql
|
- etl-mysql
|
||||||
muyu-modules-file:
|
etl-modules-file:
|
||||||
container_name: muyu-modules-file
|
container_name: etl-modules-file
|
||||||
build:
|
build:
|
||||||
context: ./muyu/modules/file
|
context: ./etl/modules/file
|
||||||
dockerfile: dockerfile
|
dockerfile: dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "9300:9300"
|
- "9300:9300"
|
||||||
volumes:
|
volumes:
|
||||||
- ./muyu/uploadPath:/home/muyu/uploadPath
|
- ./etl/uploadPath:/home/etl/uploadPath
|
||||||
muyu-visual-monitor:
|
etl-visual-monitor:
|
||||||
container_name: muyu-visual-monitor
|
container_name: etl-visual-monitor
|
||||||
build:
|
build:
|
||||||
context: ./muyu/visual/monitor
|
context: ./etl/visual/monitor
|
||||||
dockerfile: dockerfile
|
dockerfile: dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "9100:9100"
|
- "9100:9100"
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
# 基础镜像
|
||||||
|
FROM openjdk:8-jre
|
||||||
|
# author
|
||||||
|
MAINTAINER etl
|
||||||
|
|
||||||
|
# 挂载目录
|
||||||
|
VOLUME /home/etl
|
||||||
|
# 创建目录
|
||||||
|
RUN mkdir -p /home/etl
|
||||||
|
# 指定路径
|
||||||
|
WORKDIR /home/etl
|
||||||
|
# 复制jar文件到路径
|
||||||
|
COPY ./jar/etl-auth.jar /home/etl/etl-auth.jar
|
||||||
|
# 启动认证服务
|
||||||
|
ENTRYPOINT ["java","-jar","etl-auth.jar"]
|
|
@ -0,0 +1,15 @@
|
||||||
|
# 基础镜像
|
||||||
|
FROM openjdk:8-jre
|
||||||
|
# author
|
||||||
|
MAINTAINER etl
|
||||||
|
|
||||||
|
# 挂载目录
|
||||||
|
VOLUME /home/etl
|
||||||
|
# 创建目录
|
||||||
|
RUN mkdir -p /home/etl
|
||||||
|
# 指定路径
|
||||||
|
WORKDIR /home/etl
|
||||||
|
# 复制jar文件到路径
|
||||||
|
COPY ./jar/etl-gateway.jar /home/etl/etl-gateway.jar
|
||||||
|
# 启动网关服务
|
||||||
|
ENTRYPOINT ["java","-jar","etl-gateway.jar"]
|
|
@ -0,0 +1,15 @@
|
||||||
|
# 基础镜像
|
||||||
|
FROM openjdk:8-jre
|
||||||
|
# author
|
||||||
|
MAINTAINER etl
|
||||||
|
|
||||||
|
# 挂载目录
|
||||||
|
VOLUME /home/etl
|
||||||
|
# 创建目录
|
||||||
|
RUN mkdir -p /home/etl
|
||||||
|
# 指定路径
|
||||||
|
WORKDIR /home/etl
|
||||||
|
# 复制jar文件到路径
|
||||||
|
COPY ./jar/etl-modules-file.jar /home/etl/etl-modules-file.jar
|
||||||
|
# 启动文件服务
|
||||||
|
ENTRYPOINT ["java","-jar","etl-modules-file.jar"]
|
|
@ -0,0 +1,15 @@
|
||||||
|
# 基础镜像
|
||||||
|
FROM openjdk:8-jre
|
||||||
|
# author
|
||||||
|
MAINTAINER etl
|
||||||
|
|
||||||
|
# 挂载目录
|
||||||
|
VOLUME /home/etl
|
||||||
|
# 创建目录
|
||||||
|
RUN mkdir -p /home/etl
|
||||||
|
# 指定路径
|
||||||
|
WORKDIR /home/etl
|
||||||
|
# 复制jar文件到路径
|
||||||
|
COPY ./jar/etl-modules-gen.jar /home/etl/etl-modules-gen.jar
|
||||||
|
# 启动代码生成服务
|
||||||
|
ENTRYPOINT ["java","-jar","etl-modules-gen.jar"]
|
|
@ -0,0 +1,15 @@
|
||||||
|
# 基础镜像
|
||||||
|
FROM openjdk:8-jre
|
||||||
|
# author
|
||||||
|
MAINTAINER etl
|
||||||
|
|
||||||
|
# 挂载目录
|
||||||
|
VOLUME /home/etl
|
||||||
|
# 创建目录
|
||||||
|
RUN mkdir -p /home/etl
|
||||||
|
# 指定路径
|
||||||
|
WORKDIR /home/etl
|
||||||
|
# 复制jar文件到路径
|
||||||
|
COPY ./jar/etl-modules-job.jar /home/etl/etl-modules-job.jar
|
||||||
|
# 启动定时任务服务
|
||||||
|
ENTRYPOINT ["java","-jar","etl-modules-job.jar"]
|
|
@ -0,0 +1,15 @@
|
||||||
|
# 基础镜像
|
||||||
|
FROM openjdk:8-jre
|
||||||
|
# author
|
||||||
|
MAINTAINER etl
|
||||||
|
|
||||||
|
# 挂载目录
|
||||||
|
VOLUME /home/etl
|
||||||
|
# 创建目录
|
||||||
|
RUN mkdir -p /home/etl
|
||||||
|
# 指定路径
|
||||||
|
WORKDIR /home/etl
|
||||||
|
# 复制jar文件到路径
|
||||||
|
COPY ./jar/etl-modules-system.jar /home/etl/etl-modules-system.jar
|
||||||
|
# 启动系统服务
|
||||||
|
ENTRYPOINT ["java","-jar","etl-modules-system.jar"]
|
|
@ -0,0 +1,15 @@
|
||||||
|
# 基础镜像
|
||||||
|
FROM openjdk:8-jre
|
||||||
|
# author
|
||||||
|
MAINTAINER etl
|
||||||
|
|
||||||
|
# 挂载目录
|
||||||
|
VOLUME /home/etl
|
||||||
|
# 创建目录
|
||||||
|
RUN mkdir -p /home/etl
|
||||||
|
# 指定路径
|
||||||
|
WORKDIR /home/etl
|
||||||
|
# 复制jar文件到路径
|
||||||
|
COPY ./jar/etl-visual-monitor.jar /home/etl/etl-visual-monitor.jar
|
||||||
|
# 启动系统服务
|
||||||
|
ENTRYPOINT ["java","-jar","etl-visual-monitor.jar"]
|
|
@ -1,15 +0,0 @@
|
||||||
# 基础镜像
|
|
||||||
FROM openjdk:8-jre
|
|
||||||
# author
|
|
||||||
MAINTAINER muyu
|
|
||||||
|
|
||||||
# 挂载目录
|
|
||||||
VOLUME /home/muyu
|
|
||||||
# 创建目录
|
|
||||||
RUN mkdir -p /home/muyu
|
|
||||||
# 指定路径
|
|
||||||
WORKDIR /home/muyu
|
|
||||||
# 复制jar文件到路径
|
|
||||||
COPY ./jar/muyu-auth.jar /home/muyu/muyu-auth.jar
|
|
||||||
# 启动认证服务
|
|
||||||
ENTRYPOINT ["java","-jar","muyu-auth.jar"]
|
|
|
@ -1,15 +0,0 @@
|
||||||
# 基础镜像
|
|
||||||
FROM openjdk:8-jre
|
|
||||||
# author
|
|
||||||
MAINTAINER muyu
|
|
||||||
|
|
||||||
# 挂载目录
|
|
||||||
VOLUME /home/muyu
|
|
||||||
# 创建目录
|
|
||||||
RUN mkdir -p /home/muyu
|
|
||||||
# 指定路径
|
|
||||||
WORKDIR /home/muyu
|
|
||||||
# 复制jar文件到路径
|
|
||||||
COPY ./jar/muyu-gateway.jar /home/muyu/muyu-gateway.jar
|
|
||||||
# 启动网关服务
|
|
||||||
ENTRYPOINT ["java","-jar","muyu-gateway.jar"]
|
|
|
@ -1,15 +0,0 @@
|
||||||
# 基础镜像
|
|
||||||
FROM openjdk:8-jre
|
|
||||||
# author
|
|
||||||
MAINTAINER muyu
|
|
||||||
|
|
||||||
# 挂载目录
|
|
||||||
VOLUME /home/muyu
|
|
||||||
# 创建目录
|
|
||||||
RUN mkdir -p /home/muyu
|
|
||||||
# 指定路径
|
|
||||||
WORKDIR /home/muyu
|
|
||||||
# 复制jar文件到路径
|
|
||||||
COPY ./jar/muyu-modules-file.jar /home/muyu/muyu-modules-file.jar
|
|
||||||
# 启动文件服务
|
|
||||||
ENTRYPOINT ["java","-jar","muyu-modules-file.jar"]
|
|
|
@ -1,15 +0,0 @@
|
||||||
# 基础镜像
|
|
||||||
FROM openjdk:8-jre
|
|
||||||
# author
|
|
||||||
MAINTAINER muyu
|
|
||||||
|
|
||||||
# 挂载目录
|
|
||||||
VOLUME /home/muyu
|
|
||||||
# 创建目录
|
|
||||||
RUN mkdir -p /home/muyu
|
|
||||||
# 指定路径
|
|
||||||
WORKDIR /home/muyu
|
|
||||||
# 复制jar文件到路径
|
|
||||||
COPY ./jar/muyu-modules-gen.jar /home/muyu/muyu-modules-gen.jar
|
|
||||||
# 启动代码生成服务
|
|
||||||
ENTRYPOINT ["java","-jar","muyu-modules-gen.jar"]
|
|
|
@ -1,15 +0,0 @@
|
||||||
# 基础镜像
|
|
||||||
FROM openjdk:8-jre
|
|
||||||
# author
|
|
||||||
MAINTAINER muyu
|
|
||||||
|
|
||||||
# 挂载目录
|
|
||||||
VOLUME /home/muyu
|
|
||||||
# 创建目录
|
|
||||||
RUN mkdir -p /home/muyu
|
|
||||||
# 指定路径
|
|
||||||
WORKDIR /home/muyu
|
|
||||||
# 复制jar文件到路径
|
|
||||||
COPY ./jar/muyu-modules-job.jar /home/muyu/muyu-modules-job.jar
|
|
||||||
# 启动定时任务服务
|
|
||||||
ENTRYPOINT ["java","-jar","muyu-modules-job.jar"]
|
|
|
@ -1,15 +0,0 @@
|
||||||
# 基础镜像
|
|
||||||
FROM openjdk:8-jre
|
|
||||||
# author
|
|
||||||
MAINTAINER muyu
|
|
||||||
|
|
||||||
# 挂载目录
|
|
||||||
VOLUME /home/muyu
|
|
||||||
# 创建目录
|
|
||||||
RUN mkdir -p /home/muyu
|
|
||||||
# 指定路径
|
|
||||||
WORKDIR /home/muyu
|
|
||||||
# 复制jar文件到路径
|
|
||||||
COPY ./jar/muyu-modules-system.jar /home/muyu/muyu-modules-system.jar
|
|
||||||
# 启动系统服务
|
|
||||||
ENTRYPOINT ["java","-jar","muyu-modules-system.jar"]
|
|
|
@ -1,15 +0,0 @@
|
||||||
# 基础镜像
|
|
||||||
FROM openjdk:8-jre
|
|
||||||
# author
|
|
||||||
MAINTAINER muyu
|
|
||||||
|
|
||||||
# 挂载目录
|
|
||||||
VOLUME /home/muyu
|
|
||||||
# 创建目录
|
|
||||||
RUN mkdir -p /home/muyu
|
|
||||||
# 指定路径
|
|
||||||
WORKDIR /home/muyu
|
|
||||||
# 复制jar文件到路径
|
|
||||||
COPY ./jar/muyu-visual-monitor.jar /home/muyu/muyu-visual-monitor.jar
|
|
||||||
# 启动系统服务
|
|
||||||
ENTRYPOINT ["java","-jar","muyu-visual-monitor.jar"]
|
|
|
@ -1,7 +1,7 @@
|
||||||
# 基础镜像
|
# 基础镜像
|
||||||
FROM mysql:5.7
|
FROM mysql:5.7
|
||||||
# author
|
# author
|
||||||
MAINTAINER muyu
|
MAINTAINER etl
|
||||||
|
|
||||||
# 执行sql脚本
|
# 执行sql脚本
|
||||||
ADD ./db/*.sql /docker-entrypoint-initdb.d/
|
ADD ./db/*.sql /docker-entrypoint-initdb.d/
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
spring.datasource.platform=mysql
|
spring.datasource.platform=mysql
|
||||||
db.num=1
|
db.num=1
|
||||||
db.url.0=jdbc:mysql://muyu-mysql:3306/ry-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
|
db.url.0=jdbc:mysql://etl-mysql:3306/ry-config?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
|
||||||
db.user=root
|
db.user=root
|
||||||
db.password=password
|
db.password=password
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ management.metrics.export.influx.enabled=false
|
||||||
server.tomcat.accesslog.enabled=true
|
server.tomcat.accesslog.enabled=true
|
||||||
server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D %{User-Agent}i %{Request-Source}i
|
server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D %{User-Agent}i %{Request-Source}i
|
||||||
|
|
||||||
server.tomcat.basedir=/home/muyu/nacos/tomcat/logs
|
server.tomcat.basedir=/home/etl/nacos/tomcat/logs
|
||||||
|
|
||||||
nacos.security.ignore.urls=/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-ui/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**
|
nacos.security.ignore.urls=/,/error,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-ui/public/**,/v1/auth/**,/v1/console/health/**,/actuator/**,/v1/console/server/**
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# 基础镜像
|
# 基础镜像
|
||||||
FROM nacos/nacos-server
|
FROM nacos/nacos-server
|
||||||
# author
|
# author
|
||||||
MAINTAINER muyu
|
MAINTAINER etl
|
||||||
|
|
||||||
# 复制conf文件到路径
|
# 复制conf文件到路径
|
||||||
COPY ./conf/application.properties /home/nacos/conf/application.properties
|
COPY ./conf/application.properties /home/nacos/conf/application.properties
|
||||||
|
|
|
@ -15,7 +15,7 @@ http {
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /home/muyu/projects/muyu-ui;
|
root /home/etl/projects/etl-ui;
|
||||||
try_files $uri $uri/ /index.html;
|
try_files $uri $uri/ /index.html;
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
}
|
}
|
||||||
|
@ -25,7 +25,7 @@ http {
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header REMOTE-HOST $remote_addr;
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_pass http://muyu-gateway:8080/;
|
proxy_pass http://etl-gateway:8080/;
|
||||||
}
|
}
|
||||||
|
|
||||||
# 避免actuator暴露
|
# 避免actuator暴露
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
# 基础镜像
|
# 基础镜像
|
||||||
FROM nginx
|
FROM nginx
|
||||||
# author
|
# author
|
||||||
MAINTAINER muyu
|
MAINTAINER etl
|
||||||
|
|
||||||
# 挂载目录
|
# 挂载目录
|
||||||
VOLUME /home/muyu/projects/muyu-ui
|
VOLUME /home/etl/projects/etl-ui
|
||||||
# 创建目录
|
# 创建目录
|
||||||
RUN mkdir -p /home/muyu/projects/muyu-ui
|
RUN mkdir -p /home/etl/projects/etl-ui
|
||||||
# 指定路径
|
# 指定路径
|
||||||
WORKDIR /home/muyu/projects/muyu-ui
|
WORKDIR /home/etl/projects/etl-ui
|
||||||
# 复制conf文件到路径
|
# 复制conf文件到路径
|
||||||
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
|
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
|
||||||
# 复制html文件到路径
|
# 复制html文件到路径
|
||||||
COPY ./html/dist /home/muyu/projects/muyu-ui
|
COPY ./html/dist /home/etl/projects/etl-ui
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
# 基础镜像
|
# 基础镜像
|
||||||
FROM redis
|
FROM redis
|
||||||
# author
|
# author
|
||||||
MAINTAINER muyu
|
MAINTAINER etl
|
||||||
|
|
||||||
# 挂载目录
|
# 挂载目录
|
||||||
VOLUME /home/muyu/redis
|
VOLUME /home/etl/redis
|
||||||
# 创建目录
|
# 创建目录
|
||||||
RUN mkdir -p /home/muyu/redis
|
RUN mkdir -p /home/etl/redis
|
||||||
# 指定路径
|
# 指定路径
|
||||||
WORKDIR /home/muyu/redis
|
WORKDIR /home/etl/redis
|
||||||
# 复制conf文件到路径
|
# 复制conf文件到路径
|
||||||
COPY ./conf/redis.conf /home/muyu/redis/redis.conf
|
COPY ./conf/redis.conf /home/etl/redis/redis.conf
|
||||||
|
|
|
@ -2,20 +2,25 @@
|
||||||
xmlns="http://maven.apache.org/POM/4.0.0"
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.muyu</groupId>
|
<groupId>com.etl</groupId>
|
||||||
<artifactId>muyu</artifactId>
|
<artifactId>etl-cloud</artifactId>
|
||||||
<version>3.6.3</version>
|
<version>3.6.3</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>muyu-auth</artifactId>
|
<artifactId>etl-auth</artifactId>
|
||||||
|
|
||||||
<description>
|
<description>
|
||||||
muyu-auth认证授权中心
|
etl-auth认证授权中心
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>net.logstash.logback</groupId>
|
||||||
|
<artifactId>logstash-logback-encoder</artifactId>
|
||||||
|
<version>6.6</version>
|
||||||
|
</dependency>
|
||||||
<!-- SpringCloud Alibaba Nacos -->
|
<!-- SpringCloud Alibaba Nacos -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.alibaba.cloud</groupId>
|
<groupId>com.alibaba.cloud</groupId>
|
||||||
|
@ -46,10 +51,10 @@
|
||||||
<artifactId>spring-boot-starter-actuator</artifactId>
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- MuYu Common Security-->
|
<!-- ETL Common Security-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.muyu</groupId>
|
<groupId>com.etl</groupId>
|
||||||
<artifactId>muyu-common-security</artifactId>
|
<artifactId>etl-common-security</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
|
@ -1,6 +1,6 @@
|
||||||
package com.muyu.auth;
|
package com.etl.auth;
|
||||||
|
|
||||||
import com.muyu.common.security.annotation.EnableMyFeignClients;
|
import com.etl.common.security.annotation.EnableMyFeignClients;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
||||||
|
@ -8,12 +8,12 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
||||||
/**
|
/**
|
||||||
* 认证授权中心
|
* 认证授权中心
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
@EnableMyFeignClients
|
@EnableMyFeignClients
|
||||||
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
|
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
|
||||||
public class MuYuAuthApplication {
|
public class ETLAuthApplication {
|
||||||
public static void main (String[] args) {
|
public static void main (String[] args) {
|
||||||
SpringApplication.run(MuYuAuthApplication.class, args);
|
SpringApplication.run(ETLAuthApplication.class, args);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,15 +1,15 @@
|
||||||
package com.muyu.auth.controller;
|
package com.etl.auth.controller;
|
||||||
|
|
||||||
import com.muyu.auth.form.LoginBody;
|
import com.etl.auth.form.LoginBody;
|
||||||
import com.muyu.auth.form.RegisterBody;
|
import com.etl.auth.form.RegisterBody;
|
||||||
import com.muyu.auth.service.SysLoginService;
|
import com.etl.auth.service.SysLoginService;
|
||||||
import com.muyu.common.core.domain.Result;
|
import com.etl.common.core.domain.Result;
|
||||||
import com.muyu.common.core.utils.JwtUtils;
|
import com.etl.common.core.utils.JwtUtils;
|
||||||
import com.muyu.common.core.utils.StringUtils;
|
import com.etl.common.core.utils.StringUtils;
|
||||||
import com.muyu.common.security.auth.AuthUtil;
|
import com.etl.common.security.auth.AuthUtil;
|
||||||
import com.muyu.common.security.service.TokenService;
|
import com.etl.common.security.service.TokenService;
|
||||||
import com.muyu.common.security.utils.SecurityUtils;
|
import com.etl.common.security.utils.SecurityUtils;
|
||||||
import com.muyu.common.system.domain.LoginUser;
|
import com.etl.common.system.domain.LoginUser;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
@ -21,7 +21,7 @@ import javax.servlet.http.HttpServletRequest;
|
||||||
/**
|
/**
|
||||||
* token 控制
|
* token 控制
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
public class TokenController {
|
public class TokenController {
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.auth.form;
|
package com.etl.auth.form;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户登录对象
|
* 用户登录对象
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class LoginBody {
|
public class LoginBody {
|
||||||
/**
|
/**
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.auth.form;
|
package com.etl.auth.form;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户注册对象
|
* 用户注册对象
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class RegisterBody extends LoginBody {
|
public class RegisterBody extends LoginBody {
|
||||||
|
|
|
@ -1,27 +1,27 @@
|
||||||
package com.muyu.auth.service;
|
package com.etl.auth.service;
|
||||||
|
|
||||||
import com.muyu.common.core.constant.CacheConstants;
|
import com.etl.common.core.constant.CacheConstants;
|
||||||
import com.muyu.common.core.constant.Constants;
|
import com.etl.common.core.constant.Constants;
|
||||||
import com.muyu.common.core.constant.SecurityConstants;
|
import com.etl.common.core.constant.SecurityConstants;
|
||||||
import com.muyu.common.core.constant.UserConstants;
|
import com.etl.common.core.constant.UserConstants;
|
||||||
import com.muyu.common.core.domain.Result;
|
import com.etl.common.core.domain.Result;
|
||||||
import com.muyu.common.core.enums.UserStatus;
|
import com.etl.common.core.enums.UserStatus;
|
||||||
import com.muyu.common.core.exception.ServiceException;
|
import com.etl.common.core.exception.ServiceException;
|
||||||
import com.muyu.common.core.text.Convert;
|
import com.etl.common.core.text.Convert;
|
||||||
import com.muyu.common.core.utils.StringUtils;
|
import com.etl.common.core.utils.StringUtils;
|
||||||
import com.muyu.common.core.utils.ip.IpUtils;
|
import com.etl.common.core.utils.ip.IpUtils;
|
||||||
import com.muyu.common.redis.service.RedisService;
|
import com.etl.common.redis.service.RedisService;
|
||||||
import com.muyu.common.security.utils.SecurityUtils;
|
import com.etl.common.security.utils.SecurityUtils;
|
||||||
import com.muyu.common.system.remote.RemoteUserService;
|
import com.etl.common.system.remote.RemoteUserService;
|
||||||
import com.muyu.common.system.domain.SysUser;
|
import com.etl.common.system.domain.SysUser;
|
||||||
import com.muyu.common.system.domain.LoginUser;
|
import com.etl.common.system.domain.LoginUser;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 登录校验方法
|
* 登录校验方法
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class SysLoginService {
|
public class SysLoginService {
|
|
@ -1,11 +1,11 @@
|
||||||
package com.muyu.auth.service;
|
package com.etl.auth.service;
|
||||||
|
|
||||||
import com.muyu.common.core.constant.CacheConstants;
|
import com.etl.common.core.constant.CacheConstants;
|
||||||
import com.muyu.common.core.constant.Constants;
|
import com.etl.common.core.constant.Constants;
|
||||||
import com.muyu.common.core.exception.ServiceException;
|
import com.etl.common.core.exception.ServiceException;
|
||||||
import com.muyu.common.redis.service.RedisService;
|
import com.etl.common.redis.service.RedisService;
|
||||||
import com.muyu.common.security.utils.SecurityUtils;
|
import com.etl.common.security.utils.SecurityUtils;
|
||||||
import com.muyu.common.system.domain.SysUser;
|
import com.etl.common.system.domain.SysUser;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ import java.util.concurrent.TimeUnit;
|
||||||
/**
|
/**
|
||||||
* 登录密码方法
|
* 登录密码方法
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class SysPasswordService {
|
public class SysPasswordService {
|
|
@ -1,18 +1,18 @@
|
||||||
package com.muyu.auth.service;
|
package com.etl.auth.service;
|
||||||
|
|
||||||
import com.muyu.common.core.constant.Constants;
|
import com.etl.common.core.constant.Constants;
|
||||||
import com.muyu.common.core.constant.SecurityConstants;
|
import com.etl.common.core.constant.SecurityConstants;
|
||||||
import com.muyu.common.core.utils.StringUtils;
|
import com.etl.common.core.utils.StringUtils;
|
||||||
import com.muyu.common.core.utils.ip.IpUtils;
|
import com.etl.common.core.utils.ip.IpUtils;
|
||||||
import com.muyu.common.system.remote.RemoteLogService;
|
import com.etl.common.system.remote.RemoteLogService;
|
||||||
import com.muyu.common.system.domain.SysLogininfor;
|
import com.etl.common.system.domain.SysLogininfor;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 记录日志方法
|
* 记录日志方法
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class SysRecordLogService {
|
public class SysRecordLogService {
|
|
@ -6,7 +6,7 @@ server:
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
# 应用名称
|
# 应用名称
|
||||||
name: muyu-auth
|
name: etl-auth
|
||||||
profiles:
|
profiles:
|
||||||
# 环境配置
|
# 环境配置
|
||||||
active: dev
|
active: dev
|
||||||
|
@ -15,15 +15,15 @@ spring:
|
||||||
discovery:
|
discovery:
|
||||||
# 服务注册地址
|
# 服务注册地址
|
||||||
server-addr: 111.229.102.61:8848
|
server-addr: 111.229.102.61:8848
|
||||||
# 命名空间
|
namespace: etl
|
||||||
namespace: muyu
|
|
||||||
config:
|
config:
|
||||||
# 配置中心地址
|
# 配置中心地址
|
||||||
server-addr: 111.229.102.61:8848
|
server-addr: 111.229.102.61:8848
|
||||||
#命名空间
|
|
||||||
namespace: muyu
|
|
||||||
# 配置文件格式
|
# 配置文件格式
|
||||||
file-extension: yml
|
file-extension: yml
|
||||||
# 共享配置
|
# 共享配置
|
||||||
shared-configs:
|
shared-configs:
|
||||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||||
|
namespace: etl
|
||||||
|
logging:
|
||||||
|
config: classpath:logback-spring.xml
|
|
@ -0,0 +1,57 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<configuration>
|
||||||
|
<include resource="org/springframework/boot/logging/logback/base.xml" />
|
||||||
|
<springProperty scope="context" name="springAppName" source="Website may be available for web development ideas"/>
|
||||||
|
<springProperty scope="context" name="serverPort" source="server.port"/>
|
||||||
|
<appender name="LOGSTASH" class="net.logstash.logback.appender.LogstashTcpSocketAppender">
|
||||||
|
<!--logstash的服务地址和端口,可以实际情况设置-->
|
||||||
|
<destination>111.229.102.61:5044</destination>
|
||||||
|
<!-- 日志输出编码 -->
|
||||||
|
<encoder charset="UTF-8" class="net.logstash.logback.encoder.LogstashEncoder">
|
||||||
|
<providers>
|
||||||
|
<timestamp>
|
||||||
|
<timeZone>UTC</timeZone>
|
||||||
|
</timestamp>
|
||||||
|
<pattern>
|
||||||
|
<pattern>
|
||||||
|
{
|
||||||
|
<!--应用名称 -->
|
||||||
|
"app": "${springAppName}_${serverPort}",
|
||||||
|
<!--打印时间 -->
|
||||||
|
"timestamp": "%d{yyyy-MM-dd HH:mm:ss.SSS}",
|
||||||
|
<!--线程名称 -->
|
||||||
|
"thread": "%thread",
|
||||||
|
<!--日志级别 -->
|
||||||
|
"level": "%level",
|
||||||
|
<!--日志名称 -->
|
||||||
|
"logger_name": "%logger",
|
||||||
|
<!--日志信息 -->
|
||||||
|
"message": "%msg",
|
||||||
|
<!--日志堆栈 -->
|
||||||
|
"stack_trace": "%exception"
|
||||||
|
}
|
||||||
|
</pattern>
|
||||||
|
</pattern>
|
||||||
|
</providers>
|
||||||
|
</encoder>
|
||||||
|
</appender>
|
||||||
|
<!--定义日志文件的存储地址,使用绝对路径-->
|
||||||
|
<property name="LOG_HOME" value="/Users/jianchenghou/log/elklog"/>
|
||||||
|
<!-- 按照每天生成日志文件 -->
|
||||||
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||||
|
<!--日志文件输出的文件名-->
|
||||||
|
<fileNamePattern>${LOG_HOME}/${springAppName}-${serverPort}-%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||||
|
</rollingPolicy>
|
||||||
|
<encoder>
|
||||||
|
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||||
|
</encoder>
|
||||||
|
</appender>
|
||||||
|
<root level="INFO">
|
||||||
|
<appender-ref ref="LOGSTASH" />
|
||||||
|
<appender-ref ref="FILE" />
|
||||||
|
<appender-ref ref="CONSOLE" />
|
||||||
|
</root>
|
||||||
|
|
||||||
|
|
||||||
|
</configuration>
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<configuration scan="true" scanPeriod="60 seconds" debug="false">
|
<configuration scan="true" scanPeriod="60 seconds" debug="false">
|
||||||
<!-- 日志存放路径 -->
|
<!-- 日志存放路径 -->
|
||||||
<property name="log.path" value="logs/muyu-job"/>
|
<property name="log.path" value="logs/etl-auth"/>
|
||||||
<!-- 日志输出格式 -->
|
<!-- 日志输出格式 -->
|
||||||
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n"/>
|
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n"/>
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
<!-- 系统模块日志级别控制 -->
|
<!-- 系统模块日志级别控制 -->
|
||||||
<logger name="com.muyu" level="info"/>
|
<logger name="com.etl" level="info"/>
|
||||||
<!-- Spring日志级别控制 -->
|
<!-- Spring日志级别控制 -->
|
||||||
<logger name="org.springframework" level="warn"/>
|
<logger name="org.springframework" level="warn"/>
|
||||||
|
|
|
@ -3,20 +3,24 @@
|
||||||
xmlns="http://maven.apache.org/POM/4.0.0"
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>com.muyu</groupId>
|
<groupId>com.etl</groupId>
|
||||||
<artifactId>muyu-common</artifactId>
|
<artifactId>etl-common</artifactId>
|
||||||
<version>3.6.3</version>
|
<version>3.6.3</version>
|
||||||
</parent>
|
</parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<artifactId>muyu-common-core</artifactId>
|
<artifactId>etl-common-core</artifactId>
|
||||||
|
|
||||||
<description>
|
<description>
|
||||||
muyu-common-core核心模块
|
etl-common-core核心模块
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
<!-- rabbitMQ-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-amqp</artifactId>
|
||||||
|
</dependency>
|
||||||
<!-- SpringCloud Openfeign -->
|
<!-- SpringCloud Openfeign -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
|
@ -136,6 +140,16 @@
|
||||||
<artifactId>lombok</artifactId>
|
<artifactId>lombok</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>redis.clients</groupId>
|
||||||
|
<artifactId>jedis</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
</project>
|
</project>
|
|
@ -1,6 +1,6 @@
|
||||||
package com.muyu.common.core.annotation;
|
package com.etl.common.core.annotation;
|
||||||
|
|
||||||
import com.muyu.common.core.utils.poi.ExcelHandlerAdapter;
|
import com.etl.common.core.utils.poi.ExcelHandlerAdapter;
|
||||||
import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
||||||
import org.apache.poi.ss.usermodel.IndexedColors;
|
import org.apache.poi.ss.usermodel.IndexedColors;
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ import java.math.BigDecimal;
|
||||||
/**
|
/**
|
||||||
* 自定义导出Excel数据注解
|
* 自定义导出Excel数据注解
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target(ElementType.FIELD)
|
@Target(ElementType.FIELD)
|
|
@ -1,4 +1,4 @@
|
||||||
package com.muyu.common.core.annotation;
|
package com.etl.common.core.annotation;
|
||||||
|
|
||||||
import java.lang.annotation.ElementType;
|
import java.lang.annotation.ElementType;
|
||||||
import java.lang.annotation.Retention;
|
import java.lang.annotation.Retention;
|
||||||
|
@ -8,7 +8,7 @@ import java.lang.annotation.Target;
|
||||||
/**
|
/**
|
||||||
* Excel注解集
|
* Excel注解集
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
@Target(ElementType.FIELD)
|
@Target(ElementType.FIELD)
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.constant;
|
package com.etl.common.core.constant;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 缓存常量信息
|
* 缓存常量信息
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class CacheConstants {
|
public class CacheConstants {
|
||||||
/**
|
/**
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.constant;
|
package com.etl.common.core.constant;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 通用常量信息
|
* 通用常量信息
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class Constants {
|
public class Constants {
|
||||||
/**
|
/**
|
||||||
|
@ -119,16 +119,16 @@ public class Constants {
|
||||||
/**
|
/**
|
||||||
* 自动识别json对象白名单配置(仅允许解析的包名,范围越小越安全)
|
* 自动识别json对象白名单配置(仅允许解析的包名,范围越小越安全)
|
||||||
*/
|
*/
|
||||||
public static final String[] JSON_WHITELIST_STR = {"org.springframework", "com.muyu"};
|
public static final String[] JSON_WHITELIST_STR = {"org.springframework", "com.etl"};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 定时任务白名单配置(仅允许访问的包名,如其他需要可以自行添加)
|
* 定时任务白名单配置(仅允许访问的包名,如其他需要可以自行添加)
|
||||||
*/
|
*/
|
||||||
public static final String[] JOB_WHITELIST_STR = {"com.muyu"};
|
public static final String[] JOB_WHITELIST_STR = {"com.etl"};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 定时任务违规的字符
|
* 定时任务违规的字符
|
||||||
*/
|
*/
|
||||||
public static final String[] JOB_ERROR_STR = {"java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
|
public static final String[] JOB_ERROR_STR = {"java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
|
||||||
"org.springframework", "org.apache", "com.muyu.common.core.utils.file"};
|
"org.springframework", "org.apache", "com.etl.common.core.utils.file"};
|
||||||
}
|
}
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.constant;
|
package com.etl.common.core.constant;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 代码生成通用常量
|
* 代码生成通用常量
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class GenConstants {
|
public class GenConstants {
|
||||||
/**
|
/**
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.constant;
|
package com.etl.common.core.constant;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 返回状态码
|
* 返回状态码
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class HttpStatus {
|
public class HttpStatus {
|
||||||
/**
|
/**
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.constant;
|
package com.etl.common.core.constant;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 任务调度通用常量
|
* 任务调度通用常量
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class ScheduleConstants {
|
public class ScheduleConstants {
|
||||||
public static final String TASK_CLASS_NAME = "TASK_CLASS_NAME";
|
public static final String TASK_CLASS_NAME = "TASK_CLASS_NAME";
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.constant;
|
package com.etl.common.core.constant;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 权限相关通用常量
|
* 权限相关通用常量
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class SecurityConstants {
|
public class SecurityConstants {
|
||||||
/**
|
/**
|
|
@ -0,0 +1,33 @@
|
||||||
|
package com.etl.common.core.constant;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 服务名称
|
||||||
|
*
|
||||||
|
* @author etl
|
||||||
|
*/
|
||||||
|
public class ServiceNameConstants {
|
||||||
|
/**
|
||||||
|
* 认证服务的serviceid
|
||||||
|
*/
|
||||||
|
public static final String AUTH_SERVICE = "etl-auth";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 系统模块的serviceid
|
||||||
|
*/
|
||||||
|
public static final String SYSTEM_SERVICE = "etl-system";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 文件服务的serviceid
|
||||||
|
*/
|
||||||
|
public static final String FILE_SERVICE = "etl-file";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据源服务
|
||||||
|
*/
|
||||||
|
public static final String DATA_SOURCE_SERVICE = "etl-data-source";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据规则引擎服务
|
||||||
|
*/
|
||||||
|
public static final String DATA_RULE_ENGINE_SERVICE = "etl-data-rule-engine";
|
||||||
|
}
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.constant;
|
package com.etl.common.core.constant;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Token的Key常量
|
* Token的Key常量
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class TokenConstants {
|
public class TokenConstants {
|
||||||
/**
|
/**
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.constant;
|
package com.etl.common.core.constant;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户常量信息
|
* 用户常量信息
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class UserConstants {
|
public class UserConstants {
|
||||||
/**
|
/**
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.context;
|
package com.etl.common.core.context;
|
||||||
|
|
||||||
import com.alibaba.ttl.TransmittableThreadLocal;
|
import com.alibaba.ttl.TransmittableThreadLocal;
|
||||||
import com.muyu.common.core.constant.SecurityConstants;
|
import com.etl.common.core.constant.SecurityConstants;
|
||||||
import com.muyu.common.core.text.Convert;
|
import com.etl.common.core.text.Convert;
|
||||||
import com.muyu.common.core.utils.StringUtils;
|
import com.etl.common.core.utils.StringUtils;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
@ -12,7 +12,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||||
* 获取当前线程变量中的 用户id、用户名称、Token等信息
|
* 获取当前线程变量中的 用户id、用户名称、Token等信息
|
||||||
* 注意: 必须在网关通过请求头的方法传入,同时在HeaderInterceptor拦截器设置值。 否则这里无法获取
|
* 注意: 必须在网关通过请求头的方法传入,同时在HeaderInterceptor拦截器设置值。 否则这里无法获取
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class SecurityContextHolder {
|
public class SecurityContextHolder {
|
||||||
private static final TransmittableThreadLocal<Map<String, Object>> THREAD_LOCAL = new TransmittableThreadLocal<>();
|
private static final TransmittableThreadLocal<Map<String, Object>> THREAD_LOCAL = new TransmittableThreadLocal<>();
|
|
@ -1,7 +1,7 @@
|
||||||
package com.muyu.common.core.domain;
|
package com.etl.common.core.domain;
|
||||||
|
|
||||||
import com.muyu.common.core.constant.Constants;
|
import com.etl.common.core.constant.Constants;
|
||||||
import com.muyu.common.core.constant.HttpStatus;
|
import com.etl.common.core.constant.HttpStatus;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Builder;
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
@ -12,7 +12,7 @@ import java.io.Serializable;
|
||||||
/**
|
/**
|
||||||
* 响应信息主体
|
* 响应信息主体
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Builder
|
@Builder
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.enums;
|
package com.etl.common.core.enums;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户状态
|
* 用户状态
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public enum UserStatus {
|
public enum UserStatus {
|
||||||
OK("0", "正常"), DISABLE("1", "停用"), DELETED("2", "删除");
|
OK("0", "正常"), DISABLE("1", "停用"), DELETED("2", "删除");
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.exception;
|
package com.etl.common.core.exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 验证码错误异常类
|
* 验证码错误异常类
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class CaptchaException extends RuntimeException {
|
public class CaptchaException extends RuntimeException {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.exception;
|
package com.etl.common.core.exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 检查异常
|
* 检查异常
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class CheckedException extends RuntimeException {
|
public class CheckedException extends RuntimeException {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.exception;
|
package com.etl.common.core.exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 演示模式异常
|
* 演示模式异常
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class DemoModeException extends RuntimeException {
|
public class DemoModeException extends RuntimeException {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.exception;
|
package com.etl.common.core.exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 全局异常
|
* 全局异常
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class GlobalException extends RuntimeException {
|
public class GlobalException extends RuntimeException {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.exception;
|
package com.etl.common.core.exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 内部认证异常
|
* 内部认证异常
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class InnerAuthException extends RuntimeException {
|
public class InnerAuthException extends RuntimeException {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.exception;
|
package com.etl.common.core.exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 权限异常
|
* 权限异常
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class PreAuthorizeException extends RuntimeException {
|
public class PreAuthorizeException extends RuntimeException {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.exception;
|
package com.etl.common.core.exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 业务异常
|
* 业务异常
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public final class ServiceException extends RuntimeException {
|
public final class ServiceException extends RuntimeException {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.exception;
|
package com.etl.common.core.exception;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 工具类异常
|
* 工具类异常
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class UtilException extends RuntimeException {
|
public class UtilException extends RuntimeException {
|
||||||
private static final long serialVersionUID = 8247610319171014183L;
|
private static final long serialVersionUID = 8247610319171014183L;
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.exception.auth;
|
package com.etl.common.core.exception.auth;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 未能通过的登录认证异常
|
* 未能通过的登录认证异常
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class NotLoginException extends RuntimeException {
|
public class NotLoginException extends RuntimeException {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
|
@ -1,11 +1,11 @@
|
||||||
package com.muyu.common.core.exception.auth;
|
package com.etl.common.core.exception.auth;
|
||||||
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 未能通过的权限认证异常
|
* 未能通过的权限认证异常
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class NotPermissionException extends RuntimeException {
|
public class NotPermissionException extends RuntimeException {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
|
@ -1,11 +1,11 @@
|
||||||
package com.muyu.common.core.exception.auth;
|
package com.etl.common.core.exception.auth;
|
||||||
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 未能通过的角色认证异常
|
* 未能通过的角色认证异常
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class NotRoleException extends RuntimeException {
|
public class NotRoleException extends RuntimeException {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.exception.base;
|
package com.etl.common.core.exception.base;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 基础异常
|
* 基础异常
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class BaseException extends RuntimeException {
|
public class BaseException extends RuntimeException {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
|
@ -1,11 +1,11 @@
|
||||||
package com.muyu.common.core.exception.file;
|
package com.etl.common.core.exception.file;
|
||||||
|
|
||||||
import com.muyu.common.core.exception.base.BaseException;
|
import com.etl.common.core.exception.base.BaseException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文件信息异常类
|
* 文件信息异常类
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class FileException extends BaseException {
|
public class FileException extends BaseException {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.exception.file;
|
package com.etl.common.core.exception.file;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文件名称超长限制异常类
|
* 文件名称超长限制异常类
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class FileNameLengthLimitExceededException extends FileException {
|
public class FileNameLengthLimitExceededException extends FileException {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.exception.file;
|
package com.etl.common.core.exception.file;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文件名大小限制异常类
|
* 文件名大小限制异常类
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class FileSizeLimitExceededException extends FileException {
|
public class FileSizeLimitExceededException extends FileException {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
|
@ -1,4 +1,4 @@
|
||||||
package com.muyu.common.core.exception.file;
|
package com.etl.common.core.exception.file;
|
||||||
|
|
||||||
import java.io.PrintStream;
|
import java.io.PrintStream;
|
||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
|
@ -6,7 +6,7 @@ import java.io.PrintWriter;
|
||||||
/**
|
/**
|
||||||
* 文件上传异常类
|
* 文件上传异常类
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class FileUploadException extends Exception {
|
public class FileUploadException extends Exception {
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package com.muyu.common.core.exception.file;
|
package com.etl.common.core.exception.file;
|
||||||
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文件上传 误异常类
|
* 文件上传 误异常类
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class InvalidExtensionException extends FileUploadException {
|
public class InvalidExtensionException extends FileUploadException {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.exception.job;
|
package com.etl.common.core.exception.job;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 计划策略异常
|
* 计划策略异常
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class TaskException extends Exception {
|
public class TaskException extends Exception {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.exception.user;
|
package com.etl.common.core.exception.user;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 验证码失效异常类
|
* 验证码失效异常类
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class CaptchaExpireException extends UserException {
|
public class CaptchaExpireException extends UserException {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
|
@ -1,11 +1,11 @@
|
||||||
package com.muyu.common.core.exception.user;
|
package com.etl.common.core.exception.user;
|
||||||
|
|
||||||
import com.muyu.common.core.exception.base.BaseException;
|
import com.etl.common.core.exception.base.BaseException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户信息异常类
|
* 用户信息异常类
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class UserException extends BaseException {
|
public class UserException extends BaseException {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.exception.user;
|
package com.etl.common.core.exception.user;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户密码不正确或不符合规范异常类
|
* 用户密码不正确或不符合规范异常类
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class UserPasswordNotMatchException extends UserException {
|
public class UserPasswordNotMatchException extends UserException {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
|
@ -1,6 +1,6 @@
|
||||||
package com.muyu.common.core.text;
|
package com.etl.common.core.text;
|
||||||
|
|
||||||
import com.muyu.common.core.utils.StringUtils;
|
import com.etl.common.core.utils.StringUtils;
|
||||||
|
|
||||||
import java.nio.charset.Charset;
|
import java.nio.charset.Charset;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
|
@ -8,7 +8,7 @@ import java.nio.charset.StandardCharsets;
|
||||||
/**
|
/**
|
||||||
* 字符集工具类
|
* 字符集工具类
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class CharsetKit {
|
public class CharsetKit {
|
||||||
/**
|
/**
|
|
@ -1,6 +1,6 @@
|
||||||
package com.muyu.common.core.text;
|
package com.etl.common.core.text;
|
||||||
|
|
||||||
import com.muyu.common.core.utils.StringUtils;
|
import com.etl.common.core.utils.StringUtils;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.math.BigInteger;
|
import java.math.BigInteger;
|
||||||
|
@ -13,7 +13,7 @@ import java.util.Set;
|
||||||
/**
|
/**
|
||||||
* 类型转换器
|
* 类型转换器
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class Convert {
|
public class Convert {
|
||||||
/**
|
/**
|
|
@ -1,11 +1,11 @@
|
||||||
package com.muyu.common.core.text;
|
package com.etl.common.core.text;
|
||||||
|
|
||||||
import com.muyu.common.core.utils.StringUtils;
|
import com.etl.common.core.utils.StringUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 字符串格式化
|
* 字符串格式化
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class StrFormatter {
|
public class StrFormatter {
|
||||||
public static final String EMPTY_JSON = "{}";
|
public static final String EMPTY_JSON = "{}";
|
|
@ -1,4 +1,4 @@
|
||||||
package com.muyu.common.core.utils;
|
package com.etl.common.core.utils;
|
||||||
|
|
||||||
import org.apache.commons.lang3.time.DateFormatUtils;
|
import org.apache.commons.lang3.time.DateFormatUtils;
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ import java.util.Date;
|
||||||
/**
|
/**
|
||||||
* 时间工具类
|
* 时间工具类
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
|
public class DateUtils extends org.apache.commons.lang3.time.DateUtils {
|
||||||
public static String YYYY = "yyyy";
|
public static String YYYY = "yyyy";
|
|
@ -1,4 +1,4 @@
|
||||||
package com.muyu.common.core.utils;
|
package com.etl.common.core.utils;
|
||||||
|
|
||||||
import org.apache.commons.lang3.exception.ExceptionUtils;
|
import org.apache.commons.lang3.exception.ExceptionUtils;
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import java.io.StringWriter;
|
||||||
/**
|
/**
|
||||||
* 错误信息处理类。
|
* 错误信息处理类。
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class ExceptionUtil {
|
public class ExceptionUtil {
|
||||||
/**
|
/**
|
|
@ -1,8 +1,8 @@
|
||||||
package com.muyu.common.core.utils;
|
package com.etl.common.core.utils;
|
||||||
|
|
||||||
import com.muyu.common.core.constant.SecurityConstants;
|
import com.etl.common.core.constant.SecurityConstants;
|
||||||
import com.muyu.common.core.constant.TokenConstants;
|
import com.etl.common.core.constant.TokenConstants;
|
||||||
import com.muyu.common.core.text.Convert;
|
import com.etl.common.core.text.Convert;
|
||||||
import io.jsonwebtoken.Claims;
|
import io.jsonwebtoken.Claims;
|
||||||
import io.jsonwebtoken.Jwts;
|
import io.jsonwebtoken.Jwts;
|
||||||
import io.jsonwebtoken.SignatureAlgorithm;
|
import io.jsonwebtoken.SignatureAlgorithm;
|
||||||
|
@ -12,7 +12,7 @@ import java.util.Map;
|
||||||
/**
|
/**
|
||||||
* Jwt工具类
|
* Jwt工具类
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class JwtUtils {
|
public class JwtUtils {
|
||||||
public static String secret = TokenConstants.SECRET;
|
public static String secret = TokenConstants.SECRET;
|
|
@ -1,14 +1,14 @@
|
||||||
package com.muyu.common.core.utils;
|
package com.etl.common.core.utils;
|
||||||
|
|
||||||
import com.github.pagehelper.PageHelper;
|
import com.github.pagehelper.PageHelper;
|
||||||
import com.muyu.common.core.utils.sql.SqlUtil;
|
import com.etl.common.core.utils.sql.SqlUtil;
|
||||||
import com.muyu.common.core.web.page.PageDomain;
|
import com.etl.common.core.web.page.PageDomain;
|
||||||
import com.muyu.common.core.web.page.TableSupport;
|
import com.etl.common.core.web.page.TableSupport;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页工具类
|
* 分页工具类
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class PageUtils extends PageHelper {
|
public class PageUtils extends PageHelper {
|
||||||
/**
|
/**
|
|
@ -1,9 +1,9 @@
|
||||||
package com.muyu.common.core.utils;
|
package com.etl.common.core.utils;
|
||||||
|
|
||||||
import com.alibaba.fastjson2.JSON;
|
import com.alibaba.fastjson2.JSON;
|
||||||
import com.muyu.common.core.constant.Constants;
|
import com.etl.common.core.constant.Constants;
|
||||||
import com.muyu.common.core.domain.Result;
|
import com.etl.common.core.domain.Result;
|
||||||
import com.muyu.common.core.text.Convert;
|
import com.etl.common.core.text.Convert;
|
||||||
import org.springframework.core.io.buffer.DataBuffer;
|
import org.springframework.core.io.buffer.DataBuffer;
|
||||||
import org.springframework.http.HttpHeaders;
|
import org.springframework.http.HttpHeaders;
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
|
@ -31,7 +31,7 @@ import java.util.Map;
|
||||||
/**
|
/**
|
||||||
* 客户端工具类
|
* 客户端工具类
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class ServletUtils {
|
public class ServletUtils {
|
||||||
/**
|
/**
|
|
@ -1,4 +1,4 @@
|
||||||
package com.muyu.common.core.utils;
|
package com.etl.common.core.utils;
|
||||||
|
|
||||||
import org.springframework.aop.framework.AopContext;
|
import org.springframework.aop.framework.AopContext;
|
||||||
import org.springframework.beans.BeansException;
|
import org.springframework.beans.BeansException;
|
||||||
|
@ -10,7 +10,7 @@ import org.springframework.stereotype.Component;
|
||||||
/**
|
/**
|
||||||
* spring工具类 方便在非spring管理环境中获取bean
|
* spring工具类 方便在非spring管理环境中获取bean
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public final class SpringUtils implements BeanFactoryPostProcessor {
|
public final class SpringUtils implements BeanFactoryPostProcessor {
|
|
@ -1,7 +1,7 @@
|
||||||
package com.muyu.common.core.utils;
|
package com.etl.common.core.utils;
|
||||||
|
|
||||||
import com.muyu.common.core.constant.Constants;
|
import com.etl.common.core.constant.Constants;
|
||||||
import com.muyu.common.core.text.StrFormatter;
|
import com.etl.common.core.text.StrFormatter;
|
||||||
import org.springframework.util.AntPathMatcher;
|
import org.springframework.util.AntPathMatcher;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
@ -11,7 +11,7 @@ import java.util.Map;
|
||||||
/**
|
/**
|
||||||
* 字符串工具类
|
* 字符串工具类
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class StringUtils extends org.apache.commons.lang3.StringUtils {
|
public class StringUtils extends org.apache.commons.lang3.StringUtils {
|
||||||
/**
|
/**
|
|
@ -1,4 +1,4 @@
|
||||||
package com.muyu.common.core.utils.bean;
|
package com.etl.common.core.utils.bean;
|
||||||
|
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -9,7 +9,7 @@ import java.util.regex.Pattern;
|
||||||
/**
|
/**
|
||||||
* Bean 工具类
|
* Bean 工具类
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class BeanUtils extends org.springframework.beans.BeanUtils {
|
public class BeanUtils extends org.springframework.beans.BeanUtils {
|
||||||
/**
|
/**
|
|
@ -1,4 +1,4 @@
|
||||||
package com.muyu.common.core.utils.bean;
|
package com.etl.common.core.utils.bean;
|
||||||
|
|
||||||
import javax.validation.ConstraintViolation;
|
import javax.validation.ConstraintViolation;
|
||||||
import javax.validation.ConstraintViolationException;
|
import javax.validation.ConstraintViolationException;
|
||||||
|
@ -8,7 +8,7 @@ import java.util.Set;
|
||||||
/**
|
/**
|
||||||
* bean对象属性验证
|
* bean对象属性验证
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class BeanValidators {
|
public class BeanValidators {
|
||||||
public static void validateWithException (Validator validator, Object object, Class<?>... groups)
|
public static void validateWithException (Validator validator, Object object, Class<?>... groups)
|
|
@ -1,4 +1,4 @@
|
||||||
package com.muyu.common.core.utils.file;
|
package com.etl.common.core.utils.file;
|
||||||
|
|
||||||
import org.apache.commons.io.FilenameUtils;
|
import org.apache.commons.io.FilenameUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
@ -10,13 +10,13 @@ import java.util.Objects;
|
||||||
/**
|
/**
|
||||||
* 文件类型工具类
|
* 文件类型工具类
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class FileTypeUtils {
|
public class FileTypeUtils {
|
||||||
/**
|
/**
|
||||||
* 获取文件类型
|
* 获取文件类型
|
||||||
* <p>
|
* <p>
|
||||||
* 例如: muyu.txt, 返回: txt
|
* 例如: etl.txt, 返回: txt
|
||||||
*
|
*
|
||||||
* @param file 文件名
|
* @param file 文件名
|
||||||
*
|
*
|
||||||
|
@ -32,7 +32,7 @@ public class FileTypeUtils {
|
||||||
/**
|
/**
|
||||||
* 获取文件类型
|
* 获取文件类型
|
||||||
* <p>
|
* <p>
|
||||||
* 例如: muyu.txt, 返回: txt
|
* 例如: etl.txt, 返回: txt
|
||||||
*
|
*
|
||||||
* @param fileName 文件名
|
* @param fileName 文件名
|
||||||
*
|
*
|
|
@ -1,6 +1,6 @@
|
||||||
package com.muyu.common.core.utils.file;
|
package com.etl.common.core.utils.file;
|
||||||
|
|
||||||
import com.muyu.common.core.utils.StringUtils;
|
import com.etl.common.core.utils.StringUtils;
|
||||||
import org.apache.commons.lang3.ArrayUtils;
|
import org.apache.commons.lang3.ArrayUtils;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
@ -12,7 +12,7 @@ import java.nio.charset.StandardCharsets;
|
||||||
/**
|
/**
|
||||||
* 文件处理工具类
|
* 文件处理工具类
|
||||||
*
|
*
|
||||||
* @author muyu
|
* @author etl
|
||||||
*/
|
*/
|
||||||
public class FileUtils {
|
public class FileUtils {
|
||||||
/**
|
/**
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue