Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spring-boot mybatis druid #10

Open
Zhazhanan opened this issue Aug 10, 2017 · 1 comment
Open

spring-boot mybatis druid #10

Zhazhanan opened this issue Aug 10, 2017 · 1 comment

Comments

@Zhazhanan
Copy link
Contributor

融入数据库连接池druid

在作者插件基础上,想融入连接池druid,请问作者有好的建议吗

@chenlei2
Copy link
Owner

你学习一下springboot的配置(比如 @ConditionalOnMissingBean),把MybatisAutoConfiguration这个配置类里面的数据源添加这些条件,你自己在自己的配置文件里面想用什么数据源就用什么数据源,把默认配置覆盖掉就可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants