出现C3P0连接问题
Initializing c3p0 pool… com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 30000, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 2yispsa0f68fss1oct5ir|1ec12df3, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 2yispsa0f68fss1oct5ir|1ec12df3, idleConnectionTestPeriod -> 30, initialPoolSize -> 10, jdbcUrl -> jdbc:mysql:///day16, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 30, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 100, maxStatements -> 200, maxStatementsPerConnection -> 0, minPoolSize -> 10, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
如图,做一个自动登录的页面
本来是输入用户名就可以自动跳转到成功页面的,可是输进去时候点击提交却还是这个页面,没有跳转,如下图:
我登录页面的代码如下:
<%@ page language=“java” contentType=“text/html; charset=UTF-8”
pageEncoding=“UTF-8”%>
<td colspan="2"><input type="submit"></td>
</tr>
</table>
</form>
用户名 | |
密码 | |
自动登录 | |
仔细和老师写的代码对比了才发现原来用户名和密码的name属性没有填写。。。
哎,改过来之后就好了
![在这里插入图片描述](https://img-blog.csdnimg.cn/20190110155329198.png)用户名 | |
密码 | |