MyBatis Without Maven

asked 2014-02-27 15:46:13 +0800

kenshin gravatar image kenshin
18 1

¿How to integrate a zk project with MyBatis without use maven?

¿Is this posible?

Thank's from Colombia

delete flag offensive retag edit

4 Answers

Sort by » oldest newest most voted

answered 2014-02-28 00:25:14 +0800

rickcr gravatar image rickcr
704 7

I have a mybatis spring zk example here


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.)

link publish delete flag offensive edit

answered 2014-02-27 18:55:35 +0800

chillworld gravatar image chillworld flag of Belgium
5357 4 9

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.

link publish delete flag offensive edit

answered 2014-02-27 22:37:59 +0800

kenshin gravatar image kenshin
18 1

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:

  • mybatis-3.2.4.jar (inside WEB-INF/lib)
  • spring-beans-4.0.2.RELEASE.jar (inside WEB-INF/lib)
  • spring-context-4.0.2.RELEASE.jar (inside WEB-INF/lib)
  • spring-jdbc-4.0.2.RELEASE.jar (inside WEB-INF/lib)
  • spring-tx-4.0.2.RELEASE.jar (inside WEB/INF/lib)
  • spring-web-4.0.2.RELEASE.jar (inside WEB-INF/lib)
  • zkspring-core.jar (inside WEB-INF/lib)

  • applicationContext.xml (inside WEB-INF)

  • CarMapper.xml (inside WebContent/recursos/mapper/mybatis)

  • jdbc.properties (inside WebContent/recursos/config)
  • mybatis-config.xml (inside WebContent/recursos/config)

And i added lines to web.xml:


But don't deploys application.

Very thanks.

link publish delete flag offensive edit

answered 2014-02-28 03:51:01 +0800

kenshin gravatar image kenshin
18 1

Thanks for helping me.


link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2014-02-27 15:46:13 +0800

Seen: 14 times

Last updated: Feb 28 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More