0

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
1

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

rickcr gravatar image rickcr
704 7

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

link publish delete flag offensive edit
0

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

chillworld gravatar image chillworld flag of Belgium
5357 4 9
https://github.com/chillw...

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
0

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:

<listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

But don't deploys application.

Very thanks.

link publish delete flag offensive edit
0

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

kenshin gravatar image kenshin
18 1

Thanks for helping me.

[solved]

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

Follow
1 follower

RSS

Stats

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