1 Star 1 Fork 128

Smile / sanji-boot

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

SanJi Boot v2.0

2.1计划

  • 集成在线doc文档
  • 权限架构调整
  • 基于vue3 + vite 构建新的web前端页面
  • 文件模块
  • 集成JWT-Token
  • 支持CAS 单点登录

2.3计划

  • 支持crud页面无需手写或生成 开箱即用

去繁就简 重新出发

基于Spring Boot 集成一些常用的功能,你只需要基于它做些简单的修改即可。

演示环境:

网址: http://47.98.125.142:28080/

用户名/密码: admin/admin

注意事项: 密码不要改 :sunglasses:

功能列表:

  • 权限认证

  • 权限管理

  • 用户管理

  • 角色管理

  • 日志管理

项目结构:

sanji-boot
├─java
│  ├─common 公共模块
│  │  ├─spring spring相关的功能
│  │  └─utils 常用工具
│  │ 
│  ├─modules 功能模块
│  │  └─sys 权限模块
│  │ 
│  └─SanjiBootApplication 项目启动类

└─resources 
   ├─static 第三方库、插件等静态资源
   │ ├─app 项目中自己写的css js img 等资源文件
   │ ├─page 页面
   │ └─plugins 第三方库、插件等静态资源

   └─application.yml  项目配置文件

代码片段:

/**
 * 角色控制器
 *
 * @author yangrd
 * @date 2019/1/9
 **/
@RestController
@RequestMapping("/api/roles")
@AllArgsConstructor
public class RoleController {

    private RoleRepository repository;

    @PostMapping
    public Role add(@RequestBody Role role) {
        return repository.save(role);
    }

    @DeleteMapping
    @Transactional(rollbackFor = Exception.class)
    public void delete(@RequestBody List<Long> ids) {
        repository.deleteInBatch(repository.findAllById(ids));
    }

    @PutMapping("{id}")
    public void update(@PathVariable("id") Role old, @RequestBody Role self) {
        old.setName(self.getName());
        old.setAuthority(self.getAuthority());
        old.setMenuSet(self.getMenuSet());
        old.setDescription(self.getDescription());
        repository.saveAndFlush(old);
    }

    @GetMapping("{id}")
    public Role get(@PathVariable("id") Role role) {
        return role;
    }

    @GetMapping
    public Page<Role> findAll(@RequestParam(defaultValue = "") String name, Pageable pageable) {
        return repository.findAllByNameContains(name, pageable);
    }
}

注意事项:

运行项目前导入sanji-boot.sql

技术栈(技术选型):

后端:

核心框架 :Spring Boot 2.1.1.RELEASE

安全框架:Apache security

视图框架:Spring MVC

持久层框架:Spring Data JPA

数据库连接池:HikariDataSource

日志管理:LogBack

JSON序列号框架: fastjson

插件: lombok

前端:

主要使用的技术:

渐进式JavaScript 框架:VUE 2.2.0

弹窗框架: jquery-confirm

页面主体框架 :zhengAdmin

效果图:

用户管理

菜单管理

角色管理

日志查看

嵌入外部网址

扩展:

zhengAdmin

使用Vue

Spring Boot 学习资料

MIT License Copyright (c) 2020 yangrd 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.

简介

基于Spring Boot 2.x 的 Material Design 的后端管理网站脚手架 :提供权限认证 用户管理 菜单管理 操作日志 等常用功能;如何保持简洁是一个问题 (如无必要勿增实体)(最小化, 最简配置, 约定大于配置)如果你对此感兴趣可以联系我们 MIT协议 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/gelen/sanji-boot.git
git@gitee.com:gelen/sanji-boot.git
gelen
sanji-boot
sanji-boot
master

搜索帮助