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

Set attribute that helps MockitoPostProcessor replace a MyBatis mapper bean with a mock #494

Merged
merged 1 commit into from
Nov 8, 2020

Conversation

harawata
Copy link
Member

@harawata harawata commented Jul 11, 2020

mybatis/spring-boot-starter#475
spring-projects/spring-boot@f4985ab

I found the solution in a similar bug report.
spring-projects/spring-boot#21379

As the constant was added in Spring Beans 5.2, I had to declare a package private constant.

@harawata harawata force-pushed the fix-spring-boot-starter-475 branch 2 times, most recently from d007089 to b1a7a5b Compare July 11, 2020 06:33
Copy link
Member

@kazuki43zoo kazuki43zoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@kazuki43zoo kazuki43zoo added this to the 2.0.6 milestone Nov 8, 2020
@kazuki43zoo kazuki43zoo added the enhancement Improve a feature or add a new feature label Nov 8, 2020
@harawata harawata merged commit fd3352a into mybatis:master Nov 8, 2020
@harawata harawata deleted the fix-spring-boot-starter-475 branch November 8, 2020 23:30
@harawata
Copy link
Member Author

harawata commented Nov 8, 2020

Thank you, @kazuki43zoo !

kazuki43zoo added a commit to kazuki43zoo/spring that referenced this pull request Oct 23, 2023
kazuki43zoo added a commit to kazuki43zoo/spring that referenced this pull request Oct 23, 2023
@itzpm
Copy link

itzpm commented Feb 21, 2024

在spring-boot3.2.1中,我发现了一些问题,如果不改动代码程序启动不了(也许3.1.5+也有这个问题),我是这样修改的
image

我看了一下之前spring-boot版本的MockitoPostProcessor,如下,他匹配了typeName
image

然后这个是boot3.2.1的版本,他并没有比较typeName,而是直接比较类型
image

@harawata
Copy link
Member Author

Hello @itzpm ,

Please do not use images for posting text information.
Just use text. Markdown supports syntax coloring.

You need to use mybatis-spring-boot 3.0.3.
See #865

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve a feature or add a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants