configure myBatis and service for agents