- Create Databases "metadesign" in postgres
- Create a table "Users" (execute script/DB_query.sql file)
- update database URL, username and password inside application.properties (for each key inside it)
- Install mybatisgenerator plug-in in eclipse
- Download/Clone repository from here and import as maven project in eclipse. (Ignore compilation error)
- right click on "Maven" -> "Update Project" (it will fetch new/updated dependencies to local repo)
- right click on "generatorconfig.xml" go to "Run As" -> "Run MyBatis Generator" (It will create Java Model class and Java Mapper files and now you can see all compilation error resolved.)
- Now run UserServiceTest.java as jUnit test.