代码拉取完成,页面将自动刷新
cslc-admin基础权限单体架构,前后端分离项目
后端项目基于Spring Boot、Spring、Spring MVC、MyBatis、MyBatis-plus、Shiro等主流后端技术开发
前端项目基于vue、vuex、element-ui、axios等主流后端技术开发
交流QQ群: 78780245
admin-ui
前端项目
admin服务
提供后台管理基础功能的包,供业务项目使用
common服务 提供系统公共基础相关工具的包,供业务项目使用
auth服务
认证授权服务,登陆验证等功能,供业务项目使用
biz服务(业务服务)
业务服务,主程序,做业务系统开发,其他服务打包后注入到此服务(通过pom依赖)
generator服务 代码生成器,独立项目,可视化页面操作数据库表生成前后端代码包
doc目录 项目相关资料
本项目基于 阿里代码规范,采用了常见的代码规范
环境搭建此处只做整体思路的说明,具体细节有问题可加群交流沟通
在当前项目根目录执行,目的下载项目相关依赖,打基础包
# 打包当前项目
mvn clean install
服务器环境jdk11、nginx最新版
通过maven打包业务项目,生成cslc-admin-server.jar部署到云服务器。
#!/bin/bash
nohup java -server -Xms128m -Xmx128m -jar ./cslc-admin-server.jar --spring.profiles.active=prod --spring.config.additional-location=./config.yml >./logs/nohup.out 2>&1 &
在nginx的配置文件中nginx.conf,添加以下配置
server {
listen 80;
# 公网域名或者ip地址
server_name www.xxxxx.cn;
location ^~ /api/ {
# 后端程序地址
proxy_pass http://localhost:4380;
proxy_connect_timeout 500s;
proxy_read_timeout 500s;
proxy_send_timeout 500s;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location / {
# 前端项目部署目录
root /html/cslc-admin-ui/;
index index.html index.htm;
}
}
3.3.1 得到加密后的数据
public static void main(String[] args) {
BasicTextEncryptor textEncryptor = new BasicTextEncryptor();
// 加密所需的salt
textEncryptor.setPassword("xxxxx");
// 待配置的加密数据,使用包含 ENC(xxx)
System.out.println("ENC("+textEncryptor.encrypt("123456")+")");
}
3.3.2 添加已下配置
jasypt:
encryptor:
password: rinxt527c # 自己自定义盐值
algorithm: PBEWithMD5AndDES
iv-generator-classname: org.jasypt.iv.NoIvGenerator
3.3.3 mysql参考案例
spring:
datasource:
password: ENC(xxx) # xxx 替换成自己加密后是数据
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型