Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Microservice springcloud springboot framework source code activiti workflow separation before and after

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

Code introduction-

This product is: springcloud + Springboot microservices\ distributed workflow front and back separation + cross-domain version (permission control to menus and buttons)

Background framework: springcloud Greenwich.SR1 + springboot 2.1.4 + activiti6.0.0 + mybaits + maven + json interface

Front-end page: html + vue.js form jquery ajax asynchronous cross-domain json format data exchange before and after separation, front and background separate deployment

Special note: the vue.js used in the front end is that the html page is introduced in the form of vue.js and deployed and run with tomcat, which is more suitable for background developers.

Mobile phone functions: IM, workflow task management and approval, internal messages, upload avatars, modify information, friend management, etc.

Core technology-

1. Code generator: (single table, master table, parts list, tree table, rapid development tool)

Freemaker template technology, 0 code need not be written, generate a complete module, with pages, table building sql scripts, processing classes, service and other complete modules

two。 Multiple data sources: (support for connecting numerous databases at the same time, and different modules can connect different numbers of databases) support N data sources

3. Ali database connection pool druid, security permissions framework shiro (menu permissions and button permissions), cache framework ehcache

4. Code editor, online template editor, imitation development tool editor

5. Call the camera to take a custom cut and edit the avatar, and adjust the chromaticity of the avatar.

6.websocket timely internal message and voice reminder, real-time online management, websocket timely refresh page (perfect victory over ajax technology)

7.redis stores distributed cache from windows redis green version, which is convenient for developers to develop and test locally.

Service introduction (each service runs separately, with high availability and low coupling)

One: springcloud service-

1.eureka registry: do two eureka services, and so on can do multiple, mutual registration, high availability, cluster deployment

2.zipkin tracking service: distributed trace logs, based on memory storage records

3.zuul gateway routing service: distribution of requests, unified management and filtering, combined with ribbon load balancing and hystrix circuit breakers

4.springboot-admin monitoring center service: unified interface management, check the running status of each service actuator health check

Second, workflow services--

1. Model management: web online process designer, preview process xml, export xml, deployment process

two。 Process management: import and export process resource files, view flow chart, reflect process model according to process instance, activate and suspend

3. Running process: view process information, current task node, current flowchart, invalidate pause process, assign undertaker

4. Historical process: view process information, process time, process status, view task initiator information

5. To-do tasks: check my personal tasks and tasks under this role, handle, reject, invalidate, and assign an agent

6. Completed tasks: check the tasks you have handled, as well as process information, flow chart, process status (invalid and rejected)

Note: when the current task is completed, the person waiting for the next task will receive an instant message reminder of the new task when the task is invalidated or completed.

The task initiator will be notified by the message from the station.

Three: system services--

Rights management: click the secondary menu to enter the third-level menu to display roles (basic permissions) and button permissions

Roles (basic permissions): divide into role groups and roles, assign menu permissions and add, delete, change and search permissions independently. (a user can have multiple roles)

Button permissions: assign button permissions to roles.

Button management: customize button management, maintain button shiro permission identification, etc.

Menu management: n-level custom menu, select menu icon, menu status display hidden (recursive processing)

Data dictionary: n-level, supporting multi-level classification. Built-in numbering, sorting, etc.

Log management: record user login and logout and some important operation records

Online management: websocket technology, real-time detection of online user list, statistics of the number of online, can force users offline the same user can only log in in one client

System users: add, delete, modify and check each basic user, export to excel table, delete in batch

Internal message: incoming and outgoing mailboxes, timely reminders made by websocket technology and communication technology, and voice prompt letters can be configured.

System settings: modify system name, number of messages per page, mail service configuration, internal message configuration

10. Performance monitoring: drudi monitors the performance of various services, SQL monitoring, SQL firewall, URL monitoring, SPRING monitoring, SESSION monitoring, etc.

IV: system tools services-

Code generation: generate complete module code, and retain the generation record template, reusable (super powerful development weapon)

Forward generation: generate complete modules, html pages, processing classes, mapper layer, service layer, myabaits xml table building sql script, etc.

Reverse generation: modules that arbitrarily connect to other databases (mysql, oracle, sqlserver) and reflect the cost system according to the table

2 template management: code online editor, manage templates, save editing records, one-click restore, code generator is like a tiger

5: IM instant messaging service-

Friend management: search, add, delete, block friends, view friend profiles

Friend grouping: custom friend grouping

My group: create groups, search for applications to join other people's groups, kick out group members, manage group chats

Communication module single chat group chat, send pictures, send files, offline messages, keep chat records.

VI: database management services--

Database backup: can back up single table (not supported by sqlserver), entire library, support local and remote backup (java interface programming technology, socket programming technology)

Backup timer: quartz powerful task scheduling, multi-thread backup database, task startup and shutdown asynchronous operation

Database restore: historical backup records, restore database or single table (not supported by sqlserver), statistics backup time and file size

SQL Editor: a powerful SQL editor that supports editing complex query statements, generating dynamic reports, and exporting excel

Seven: OA office services--

Leave application: add leave request, follow the workflow leave model process

Eight: table synchronization service--

According to the business requirements, it is necessary to synchronize the table data between microservices, so this intermediate service is used.

Menu permissions: different menu permissions assigned to each role, different menus seen by each role, N-level menus

Button permissions: assign different roles and different functional permissions independently, add, delete, change and search permissions to different menus, and customize button management.

Multi-user privilege management background is supported, and permissions are specific to different menus and different buttons (a user can have multiple roles)

Technical point--

Import and export excel files (applied to system users)

2 generate word file (apply to the doc document generated by the code generator)

IO stream download file (the application is generated in the code generator and compressed into a zip file for download)

4 Code zip compression package (the application is generated in the code generator and compressed into a zip file)

MD5 encryption SHA encryption (login password is encrypted with this encryption) API encryption identity verification

Druid of the database connection pool Ali. Druid has obvious advantages in monitoring, scalability, stability and performance, and supports concurrency.

7. Security framework shiro (login authorization) (session management) (shiro comment menu permission blocking) (shiro label button permissions)

8.freemaker template engine (for code generator)

9.ehcache custom cache, select cache storage directory, handle concurrency, and improve system performance

10.tab tag page function, tags are free to switch, do not repeat the operation of the database (can all close, close the current, close other)

11. Multiple data source technology

twelve。 Call camera photo technology, picture clipping technology (user profile photo editing)

13. Online editor, imitation development tool (template editing of code generator)

Single group email, can be sent in html, plain text format

15. Parse the full spelling (pinyin) and the first letter of Chinese characters according to Chinese characters (import excel into the user table and generate the user name of Pinyin according to the user's Chinese name)

16. Voice reminder via internal message. Js controls audio playback.

17.java reads and writes ini configuration files

18.java websocket instant messaging technology, peer-to-peer, friends, groups, send picture files, offline messages, keep chat records

19. Baidu rich text editor, can upload pictures, attachments

20.java Quartz task scheduling (applied in database scheduled backup module)

21.ajax asynchronous cross-domain technology, cross-domain upload files, pictures

22.redis distributed session storage, sharing user authorization information

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report