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

Open CoreConfiguration#applyTo #813

Merged
merged 1 commit into from
Apr 24, 2023

Conversation

be-hase
Copy link
Contributor

@be-hase be-hase commented Apr 5, 2023

I want to open CoreConfiguration#applyTo.

Why

background

My application needs to connect to multiple MySQL instances, so I need to configure multiple datasource/mybatis.
(Because I am sharding MySQL and accessing replica for some queries).

Therefore, I was using mybatis-spring-starter with customize.
(To be more specific, I did not use MybatisAutoConfiguration, but wrote the equivalent configuration code myself.)

Attempting to upgrade mybatis-spring-boot-starter-3.x

CoreConfiguration is new in mybatis-spring-boot-starter-3.x.

I tried to modify our code to mimic this method, but the CoreConfiguration#applyTo is NOT public.

Currently, we copy&paste CoreConfiguration#applyTo to workaround.

What Changes

Open CoreConfiguration#applyTo.

@be-hase be-hase changed the title Oepn CoreConfiguration#applyTo Open CoreConfiguration#applyTo Apr 5, 2023
@hazendaz hazendaz requested a review from kazuki43zoo April 7, 2023 02:47
@hazendaz
Copy link
Member

hazendaz commented Apr 7, 2023

@kazuki43zoo Do you recall why that was not public?

@hazendaz hazendaz self-assigned this Apr 7, 2023
@coveralls
Copy link

Coverage Status

Coverage: 97.691%. Remained the same when pulling 2ce7496 on be-hase:open-CoreConfiguration-applyTo into 3bffc1f on mybatis:master.

@be-hase
Copy link
Contributor Author

be-hase commented Apr 19, 2023

@hazendaz @kazuki43zoo Any progress?

@hazendaz hazendaz merged commit 93d14ea into mybatis:master Apr 24, 2023
@hazendaz
Copy link
Member

@be-hase Merged. Thanks.

@be-hase be-hase deleted the open-CoreConfiguration-applyTo branch April 24, 2023 01:12
@kazuki43zoo kazuki43zoo added this to the 3.0.2 milestone May 6, 2023
@kazuki43zoo
Copy link
Member

Hi @be-hase ,
Could you wait to release at around 2023-5-18(after the Spring Boot 3.1 release date) ?

@be-hase
Copy link
Contributor Author

be-hase commented May 18, 2023

@kazuki43zoo sorry for late response. OK, thanks !

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

Successfully merging this pull request may close these issues.

4 participants