MyBatis-Spring adapter is an easy-to-use Spring3 bridge for MyBatis sql mapping framework.
Flyway should be a fundamental part of any Java EE application devops. It simplifies database migration and seamlessly integrates with your application lifecycle.
to compile project with Jetty add the following lines to pom.xml file
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.2.11.v20150529</version>
<configuration>
<scanIntervalSeconds>10</scanIntervalSeconds>
<webApp>
<contextPath>/</contextPath>
</webApp>
</configuration>
</plugin>
- Create schema data Base : testMyBatis
- Do migrate with Flyway
- run the following commands :
mvn jetty:run
Unit testing are implementing with JUnit and Mockito
- Open the browser : go to localhost:8080
- login/pass : rod/koala