/mybatis-sample

Simple example of using MyBatis via annotations with Maven, MySQL

Primary LanguageJava

Simple example of how to use MyBatis with annotations.

This example uses an embedded H2 database by default. This allows you to check the project out and immediately run a clean build via Maven:

mvn clean verify

In addition, a MySQL Workbench file is included, along with a sample MyBatis generator file. You can use these to explore more complex mappings - for example, to use the generator with an existing schema.

Requirements