Updated the ConnectionFactory class. Used mybatis-spring integration component to create a CF/Spring-compatible SqlSessionFactory bean.