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.
在 Java 中,我将 DriverManager 用于客户端代码,将 Connection pooled DataSource 用于服务器端代码。这是执行此操作的标准方法,还是也可以在客户端使用单独的数据源?
我假设您想知道是否可以在服务器应用程序之外使用连接池。
您可以编写自己的池实现,这将是乏味的......或者您可以使用像 commons dbcp 或 c3po 这样的库。
希望这可以帮助