📄 connectionpoolservlet2.java
字号:
package coreservlets;
/** A variation of ConnectionPoolServlet that uses only
* a single connection, queueing up all requests to it.
* Used to compare timing results.
* <P>
* Taken from Core Servlets and JavaServer Pages
* from Prentice Hall and Sun Microsystems Press,
* http://www.coreservlets.com/.
* © 2000 Marty Hall; may be freely used or adapted.
*/
public class ConnectionPoolServlet2
extends ConnectionPoolServlet {
protected int initialConnections() {
return(1);
}
protected int maxConnections() {
return(1);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -