WinterChenS / my-site

springboot2.0开发的个人网站,集成了:个人首页,个人博客,个人作品
https://my.winterchen.com:8189
Apache License 2.0
3.23k stars 1.04k forks source link

springboot 怎样跟 durid 集成的? #2

Closed HelloWorld521 closed 6 years ago

HelloWorld521 commented 6 years ago

为什么我找不到你项目中的 DataSourceConfig 和 DruidDBConfig 这种类似的配置

WinterChenS commented 6 years ago

这个是不需要java配置类配置的,请问你是哪里看到需要这样配置的呢?

HelloWorld521 commented 6 years ago

https://www.cnblogs.com/a8457013/p/7804512.html 这个的 dateSource 配置 后者这个 https://www.jianshu.com/p/9c58c84e285a DruidConfiguration 网上很多资料都是要配置的,可以问下你是怎么处理的吗?

WinterChenS commented 6 years ago

可以看我的一篇博客:https://blog.csdn.net/winter_chen001/article/details/80010967 因为我使用了Druid的springboot-starter,所以不需要额外的使用javaconfig配置,区别就在这里。