baomidou / dynamic-datasource

dynamic datasource for springboot 多数据源 动态数据源 主从分离 读写分离 分布式事务
https://www.kancloud.cn/tracy5546/dynamic-datasource/2264611
Apache License 2.0
4.75k stars 1.19k forks source link

Jdk11 JPMS ,存在split package问题 #547

Closed ipwwp-git closed 1 year ago

ipwwp-git commented 1 year ago

Please fill it out carefully, or it will be closed. 请认真填写,不然会直接关闭。

Enviroment

JDK Version(required): jdk11 SpringBoot Version(required): 2.7.12 dynamic-datasource-spring-boot-starter Version(required): 4.1.3 druid Version(optional):

Describe what happened

因为dynamic-datasource-creator 和 dynamic-datasource-spring2个jar文件,下面的包名有很多重复的,比如toolkit,在JPMS的工作机制下,存在分裂包的问题(split package),导致程序无法编译通过

Expected Result:

将包名变更下,不要完全一致,满足JPMS的规范

Actual Result:

If there is an exception,or aop invalid,please attach the exception trace:

Just paste your stack trace here!

Steps to reproduce

huayanYu commented 1 year ago

JPMS 是啥??? 为什么要同时引入两个包????

huayanYu commented 1 year ago

无回复,关闭.

ipwwp-git commented 1 year ago

JPMS就是Java Platform Module System,jdk9引入的模块化系统

ipwwp-git commented 1 year ago

maven引入dynamic-datasource-spring-boot-starter后,会自动引入依赖包dynamic-datasource-spring 和 dynamic-datasource-creator

image