search

Home  >  Q&A  >  body text

java - SpringBoot 获取dataSource

想要整合mybatis 如何获取从springboot中获取dataSource 不想用Resources

PHP中文网PHP中文网2883 days ago904

reply all(1)I'll reply

  • 迷茫

    迷茫2017-04-17 16:24:48

    You can use the official starter: https://github.com/mybatis/mybatis-spring-boot/tree/master/mybatis-spring-boot-samples

    It’s easy if you use annotations, you can refer to this: https://github.com/hoserdude/spring-boot-mybatis-profile-sandbox

    reply
    0
  • Cancelreply