jfinal通过C3p0连接sqlserver数据库,但是出现了这个问题。。。
警告: com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@3ad54d4d -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception:
com.microsoft.sqlserver.jdbc.SQLServerException: 端口号 1433/ 无效。
我是这样设置的
C3p0Plugin cp = new C3p0Plugin("jdbc:sqlserver://localhost:1433/web","sa","12345","com.microsoft.sqlserver.jdbc.SQLServerDriver");
其中/web改成;datebaseName=web;就会出现[ ` ]附近有错误,也不知道怎么回事
求大大解决