Skip to content

ClasspathMapperScanner does not use constructor #71

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

Closed
dguggi opened this issue Jun 20, 2015 · 1 comment
Closed

ClasspathMapperScanner does not use constructor #71

dguggi opened this issue Jun 20, 2015 · 1 comment

Comments

@dguggi
Copy link

dguggi commented Jun 20, 2015

relates to #58

ClasspathMapperScanner still uses property injection for mapper interface instead of (new) constructor:

definition.getPropertyValues().add("mapperInterface", definition.getBeanClassName());

should be

definition.getConstructorArgumentValues().addGenericArgumentValue(definition.getBeanClassName());

therefore mit mybatis-spring-1.2.3 i still get the error-message

"...Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException ..."

i verified that it works when using constructor injection.

@harawata
Copy link
Member

This has already been resolved, right?
Let me know if it is not.

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

No branches or pull requests

2 participants