Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直难以掌握连接池的技术实现细节。我已经阅读了很多相关文章,例如这篇 和这篇,但仍然不是 100% 清楚。连接池是否与 tomcat、mysql 或其他开发框架(struts2、spring、hibernate)相关联?我的意思是这些框架中的每一个都需要特殊处理才能与 cp 一起使用,还是我只实现一次就可以使用我想要的任何框架?
是否有一个简单的示例涉及与上述所有框架的连接池?
先感谢您。
亲切的问候
长期以来,连接池的趋势是大多数需要/使用它的框架倾向于直接开箱即用,或者至少它通常包含在基本设置指南中。每个框架都不需要做连接池,例如我不相信 struts2 做任何事情,而 spring-core 没有。我当然相信 spring dataaccess-stuff 确实如此,如果您通过 spring 进行数据访问,它可能记录在基本设置指南中。