想要实现在缓冲池中预先添加一定数量的数据库连接,其中的put方法出现问题,具体提示:The method put(Object, Object) in the type Hashtable is not applicable for the arguments (int, DBConnection) 代码部分如下: public void initConnection() { DBConnection addconnection=new DBConnection(); for(int i=0;i<=maxconnection/2;i++) { addconnection.setKey(i); connectionpool.put(i,addconnection); }
public void setKey(int key) { this.key=key; } 还是新手,希望能指点的细致些....把Hashtable换成HashMap,即可。 The method put(Object, Object) in the type Hashtable is not applicable for the arguments (int, DBConnection)
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 52 in the jsp file: /vip_info.jsp ÕË cannot be resolved 49: <table border="1& ......