开发者社区 问答 正文

spring boot集成mybatis实现自动启动tomcat该怎么弄

spring boot集成mybatis实现自动启动tomcat该怎么弄

展开
收起
游客ahv54x37wvm7u 2021-10-28 19:39:22 586 分享 版权
1 条回答
写回答
取消 提交回答
  • 这里用到spring-boot-starter基础和spring-boot-starter-test用来做单元测试验证数据访问 引入连接mysql的必要依赖mysql-connector-java 引入整合MyBatis的核心依赖mybatis-spring-boot-starter 这里不引入spring-boot-starter-jdbc依赖,是由于mybatis-spring-boot-starter中已经包含了此依赖 123456789101112131415161718192021222324252627282930313233 org.springframework.boot spring-boot-starter-parent 1.3.2.RELEASE org.springframework.boot spring-boot-starter

    2021-10-28 19:39:42
    赞同 展开评论