1 Star 0 Fork 160

木鱼 / erupt-example

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

logo

Erupt Framework   🚀   框架演示代码

零前端代码,几行 Java 注解,搞定后台管理系统

https://www.erupt.xyz


Erupt Framework jdk 8+ license Apache 2.0 Gitee star Gitee fork GitHub stars GitHub forks size

Github 仓库   |   Gitee 仓库   |   官方网站   |   贡献指南   |   在线体验   |   使用文档

QQ交流群:821389129 🔥

使用方法:

  1. 前往 src/main/resources/application.yml 修改数据库连接配置
  2. 前往 src/main/java/DemoApplication 运行main方法即可

默认用户名密码: erupt / erupt

将model下的类添加到菜单:

启动成功后,前往系统管理 → 菜单维护 → 新增,将已定义好的演示类添加到菜单中,填写数据如下:

菜单名称 菜单类型 类型值(类名) 描述
入门示例 表格 Simple
文章管理 表格 Article
树示例 TreeView
组件示例 表格 Component 各类组件与事件代理使用方法
复杂示例 表格 Complex 动态下拉列表与定义按钮等功能
多行操作 功能按钮 ComplexBtn 控制 Complex '多行操作'的按钮权限,状态选隐藏
自定义页面 模板 erupt.html 自定义页面
链接 链接 https://www.erupt.xyz
新页面 新页签 https://github.com/erupts/erupt

配置项说明

编码:确保唯一即可,建议是字母

常见问题

  • 如果图片上传失败请前往 application.yml 修改 erupt.uploadPath 配置
  • 地图组件无法使用请前往 app.js 修改 eruptSiteConfig.amapKey 的值
  • 继承HyperModel的作用,可帮助管理,创建时间,修改时间,修改人,更新人字段

目录说明

erupt-example
├── src
     ├── main.java -- 源码
           └── com.example.demo -- 包名
                ├── ExampleApplication   -- 入口类
                ├── dao
                     └──  ArticleRepository  -- 使用对文章对象的增删改查封装,使用方式与Mybatis-Plus大同小异,具体调用详见 ExampleApplicationTests
                ├── handler
                     ├──  AutoCompleteHandlerImpl  -- 自动完成示例
                     ├──  ComponentDataProxy       -- 事件代理代码示例
                     └──  OperationHandlerImpl     -- 操作按钮处理类
                └── model
                     ├──  Article  -- 文章示例
                     ├──  Complex  -- 复杂示例
                     ├──  ComplexOperator  -- 复杂示例按钮表单
                     ├──  Componen -- 组件示例
                     ├──  Simple   -- 基本示例
                     └──  TreeView -- 树视图
     ├── test.java -- 测试包
           └── com.example.demo -- 包名
                └──  ExampleApplicationTests  -- 包含调用 ArticleRepository 演示代码,直接点击运行单个方法即可
     └── resources -- 配置包
           ├── application.yml -- 后台配置
           ├── tpl
                ├── erupt.html -- 自定义页面
           └── public
                ├── app.css    -- 前端样式
                ├── app.js     -- 前端配置
                └── home.html  -- 首页样式
└── pom.xml -- 依赖配置
MIT License Copyright (c) 2020 erupts 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.

简介

Erupt 项目演示代码 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/hnxyy/erupt-example.git
git@gitee.com:hnxyy/erupt-example.git
hnxyy
erupt-example
erupt-example
master

搜索帮助

14c37bed 8189591 565d56ea 8189591