1 Star 0 Fork 29

圆木求愚 / springBoot-shiro-vue-element-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

springBoot-shiro-vue-element-admin

github

后端:springboot-shiro

使用 springBoot2.1.6 + shiro + redis + mysql 的权限管理系统,账号:admin,密码:123456,如果使用 spring-security

前端:vue-element-admin

使用的是 vue2.6 + element-ui 2.11.1vue-element-admin下载
注意:需要打开登录组件开启权限,默认 false 不开启,另外 node.js 版本是 10.*

```
// 1.
var userInfo = {
  nickname: "超级管理员",
  username:'admin',
  roles: 1,
  token: "eyJhbGciOiJIUzI1NiJ9.eyJqd3Qt",
  "isAuth":false // true开启权限验证模式 ,false 不使用权限验证,默认无权限验证
};
this.$ls.set('userInfo',userInfo);
this.success('登陆成功!');
this.$router.push('/');
return;

// data: 登录成功后返回的数据
data.isAuth = true;// 开发时可设置为false,便于快速开发界面
```

放开注释,即可。

打包问题

关于前端 npm run build报错 ERROR in xxx.js from UglifyJs 错误问题,这因为 uglifyjs-webpack-plugin版本兼容问题造成的,解决方法:运行命令

npm uni uglifyjs-webpack-plugin -D

npm i uglifyjs-webpack-plugin@1 -D

当前版本是 2.*版本,降低到 1.* 版本就可以了,再次打包成功

架构说明

Getting started
# clone the project
git clone https://gitee.com/chichengyu/springBoot-shiro-vue-element-admin.git
Build
# install
npm install

# test
npm run build:test

# build
npm run build

# watch
npm run watch

# dev-server
npm run dev
Preview

输入图片说明 输入图片说明 输入图片说明 输入图片说明

MIT License Copyright (c) 2020 小二 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

一个前后端分离的( springboot + shiro + vue + element) 项目 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/YuanMuQiuYuu/springBoot-shiro-vue-element-admin.git
git@gitee.com:YuanMuQiuYuu/springBoot-shiro-vue-element-admin.git
YuanMuQiuYuu
springBoot-shiro-vue-element-admin
springBoot-shiro-vue-element-admin
master

搜索帮助