You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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:
@BeanpublicDruidDataSourcedataSource() {
DruidDataSourceds = newDruidDataSource();
ds.setUrl(...);
ds.setUserName(...);
ds.setPassword(...);
// any other configurationreturnds;
}
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?
The text was updated successfully, but these errors were encountered: