-
FEATURED COMPONENTS
First time here? Check out the FAQ!
¿How to integrate a zk project with MyBatis without use maven?
¿Is this posible?
Thank's from Colombia
I have a mybatis spring zk example here
https://github.com/rickcr/mybatis-spring-zk
yea it uses Maven but that's just for building. You don't need maven to get the concepts. (Hopefully you are using some build system aren't you? - Gradle or Ant (at the very least. PLEASE do not rely on your IDE to do the build of the war for you.)
Of course is this possible,
You just have to do the work that maven do for you. That means : add every jar that you need under your libraries. Don't forget that sometimes frameworks depends on other jars so you must add them to.
So do research of what versions you have to add and add them. (and if you want it easy, start a maven project add zk and MyBatis and see what jars he download)
Greetz chill.
Thanks, now i know that is this possible!
¿Do you know some page where i can find some example?
Because i tried add the below files:
zkspring-core.jar (inside WEB-INF/lib)
applicationContext.xml (inside WEB-INF)
CarMapper.xml (inside WebContent/recursos/mapper/mybatis)
And i added lines to web.xml:
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
But don't deploys application.
Very thanks.
Asked: 2014-02-27 15:46:13 +0800
Seen: 14 times
Last updated: Feb 28 '14