Java MyBatis Configuration AddMappers(String packageName) -
first of all, have java code :
environment environment = new environment("development", transactionfactory, datasource); configuration config = new configuration(environment);
then, tried add mappers, using addmappers(string packagename). in package, contains interface of sqlmap
config.addmappers("com.test.mappers");
it works fine.
but when have reference project, , project has package named "com.testtwo.mappers", , contains interface of sqlmap, , tried write :
config.addmappers("com.testtwo.mappers");
my config not load of interface sqlmap in other project.
do miss something?
thank you
well, put want add mapper package .jar
thanks
Comments
Post a Comment