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

 

posted @ 2017-04-20 16:41  沧海一滴  阅读(700)  评论(0编辑  收藏  举报