Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ Decouple project from Spring and MyBatis frameworks for imp… #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

springboot4
Copy link

@springboot4 springboot4 commented Dec 14, 2024

概述

改动点:新增turbo-mybatis-plus、turbo-spring-boot-starter模块,将turbo中spring、mybatis等依赖解偶掉。spring、mybatis等依赖作为可选实现供用户引入。用户也可以根据实际情况做不同的实现,例如:solon、jpa等。同时移除掉部分非必需的依赖(例如多数据源依赖)。减轻了项目依赖,模块化的实现便于后续升级java以及底层组件版本(turbo中spring bot版本还是1.5...)

必要性: turbo定位为轻量级的Java实现的流程引擎,通过内嵌的形式提供给用户使用,通常情况下用户都会与现有的系统进行集成,但是turbo现有实现中强耦合了spring以及mybatis,导致用户在使用过程中出现与现有系统不兼容的情况,例如:
期待一个脱离Springboot框架的完全独立的,可用在其他框架上的turbo
turbo是否只支持mysql
高度偶和的架构实现带来了众多问题,例如底层组件升级上的困难,例如:
JDK17不兼容报错
目前不支持springboot3
请求支持JDK 17,或者提供在JDK 17中运行的替代方案

是否经过测试:本地jdk8环境经过完整测试。

以下是github copilot生成的变更描述,仅供参考:

This pull request includes various changes across multiple files to improve the configuration, dependencies, and code structure of the project. The most important changes include the use of placeholders for versioning, updates to dependency imports, and modifications to the database configuration.

Dependency and Configuration Updates:

  • demo/pom.xml: Replaced hardcoded version numbers with ${revision} placeholders for better version management. Updated the turbo.engine.version property and added new dependencies.
  • engine/pom.xml: Replaced hardcoded version numbers with ${revision} placeholders and updated dependencies, including removal of several Spring Boot dependencies and addition of commons-beanutils.

Code Refactoring and Imports:

Database Configuration Changes:

Test Enhancements:

Code Cleanup:

@springboot4 springboot4 marked this pull request as draft December 14, 2024 12:37
@springboot4 springboot4 marked this pull request as ready for review December 14, 2024 12:38
@springboot4
Copy link
Author

parallel-plugin模块视为拓展 本次未做修改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant