Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Add possibility to set MyBatis properties via Spring context file #679

Open
GoogleCodeExporter opened this issue Apr 21, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What version of the MyBatis are you using?
mybatis-3.1.1
mybatis-spring-1.1.1

Please describe the problem.  Unit tests are best!
At the moment not all MyBatis properties could be set via Spring context file. 
We still need to have mybatis-config.xml. For example, mapUnderscoreToCamelCase.

What is the expected output? What do you see instead?
It would be good to have all configurations in one place only.

Can you provide stack trace, logs, error messages that are displayed?
No errors

Please provide any additional information below.
In the attachment you can find how we resolved this issue using Decorator 
pattern. This class depends on some external libraries (commons-lang, log4j) 
but it can be easy removed/replaced with java core classes.

Original issue reported on code.google.com by e.f.mame...@gmail.com on 26 Sep 2012 at 6:50

Attachments:

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

No branches or pull requests

1 participant