move resources to resource package
add mybatis to config