add spring and mybatis support.