6、mybatis-spring-boot-starter与spring-boot-starter-jdbc

spring-boot-starter-jdbc是springboot提供的,可是若是引入了mybatis-spring-boot-starter,就再也不须要单独引入spring-boot-starter-jdbc了,这是因为mybatis已经包含了此依赖spring 自动检测有没有配置数据库的链接信息,去application.properties中加载,若是没有,启动不了数据库 注意:app
相关文章
相关标签/搜索