zoukankan      html  css  js  c++  java
  • spring-boot-starter-druid

    i have found from the document, and seems that spring-boot only support tomcat-jdbc,HikariCP and DBCP connection pool, if i want to use druid(https://github.com/alibaba/druid/wiki/FAQ) in my project with spring-boot, may i know how to do?

    This kind of question is best asked on stackoverflow.com (use the spring-boot tag).

    We don't currently offer any auto-configuration support for druid, but you should be able to configure directly as you would any other Spring Bean. Probably something like this:

    @Bean
    public DruidDataSource dataSource() {
        DruidDataSource ds = new DruidDataSource();
        ds.setUrl(...);
        ds.setUserName(...);
        ds.setPassword(...);
        // any other configuration
        return ds;
    }

    https://github.com/spring-projects/spring-boot/issues/2301

    https://github.com/Lzw2016/druid-spring-boot-starter

    https://github.com/CrazyApeDX/spring-boot-starter-druid

    https://github.com/xubinux/spring-boot-starter-druid  gd

    https://eacdy.gitbooks.io/spring-cloud-book/content/

    https://github.com/zalando/spring-boot-etcd

  • 相关阅读:
    3.18构建之法读后感2
    3.17Android学习
    coredns-66bff467f8-krldv CrashLoopBackOff
    6443: connect: network is unreachable
    卸载flannel
    电梯演讲
    每日学习
    梦断代码读后感1
    每日学习
    每日学习
  • 原文地址:https://www.cnblogs.com/softidea/p/6739558.html
Copyright © 2011-2022 走看看