Code Monkey home page Code Monkey logo

u3breeze / springboot-multi-tenant-satoken Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 6.0 2.29 MB

It is a simple, elegant, and lightweight framework for a multi-tenant system.(SpringBoot,Sa-Token,mybatis-plus,Vue & Element)一个简约、优雅、轻量级的多租户管理系统的脚手架。

License: MIT License

JavaScript 9.92% HTML 0.39% Vue 29.96% SCSS 1.15% Batchfile 0.04% Shell 0.12% Java 58.42%
sa-token spring-boot element-ui vue

springboot-multi-tenant-satoken's Introduction

Multi-Tenant-SaToken

简体中文

Introduction

Multi-Tenant-SaToken is an upgraded version of RuoYi-Vue-Multi-Tenant (SpringBoot,sa-token,mybatis-plus,Vue & Element),It is a simple, elegant, and lightweight framework for a multi-tenant system.

Upgrades and optimizations

  1. Refactored the authentication module for permissions, replacing Spring Security with sa-token to simplify and streamline authentication.
  2. Integrated jwt with Sa-Token(Simple mode)
  3. Upgraded Spring Boot to 2.6.8.
  4. Upgraded MyBatis to MyBatis-Plus.
  5. Upgraded Swagger and used Knife4j to enhance document generation.
  6. Optimized the handling of permissions for super administrators and tenant administrators, uniformly managed by sa-token without the need for manual if statements.
  7. Upgraded dependency package versions.
  8. User accounts are isolated by tenants, and different tenants can use the same account.
  9. Support from the external access to the token (such as their own sso server to create the token)

Environment and deployment

admin ui(/ruoyi-ui)

Local launch:

yarn install
yarn dev

Build:

 测试环境:yarn build:stage
 生产环境:yarn build:prod
API Server (/ruoyi)

mysql:

create database:mtt
sql file:/ruoyi/sql/multi_tenant.sql

Redis:

dev properties:application-dev.properties
# redis config:
spring.redis.host=127.0.0.1
spring.redis.port=6379
spring.redis.database=11
spring.redis.password=

Sa-Token Redis:

dev properties:application-dev.properties
# Sa-Token插件:配置Sa-Token单独使用的Redis database连接,权限缓存与业务缓存分离。
# Redis数据库索引
sa-token.alone-redis.database=10
# Redis服务器地址
sa-token.alone-redis.host: 127.0.0.1
# Redis服务器连接端口
sa-token.alone-redis.port: 6379
# Redis服务器连接密码(默认为空)
sa-token.alone-redis.password:

Instructions

After the front and back ends are started, access the address: http://localhost:1024/

Log in to the background of the tenant management system as the admin and admin123 system administrator (tenant Code is not specified) to manage menus and tenants.

Login System Admin img.png Add Menu Template img.png Add Tenant img.png

Login Tenant, http://localhost:1024/ img.png

Acknowledgements

  1. sa-token Lightweight Java authentication framework for permissions.
  2. RuoYi-Vue-Multi-Tenant Multi-tenant framework based on RuoYi-Vue.

springboot-multi-tenant-satoken's People

Contributors

u3breeze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.