1.首先,spring boot 配置mybatis需要的全部依赖如下:
org.springframework.boot spring-boot-starter-parent 1.5.1.RELEASE org.springframework.boot spring-boot-starter-web 1.5.1.RELEASE org.mybatis.spring.boot mybatis-spring-boot-starter 1.2.0 com.oracle ojdbc6 11.2.0.4.0-atlassian-hosted