猿问
下载APP

自己写了一个ssm项目,tomcat新启动后,首页登录功能,需要登两边,才能登进去.又没有人给看看.

一下是第一次登录,控制台输出的日志:

21:26:15.446 [http-bio-8080-exec-1] DEBUG org.mybatis.spring.SqlSessionUtils - Creating a new SqlSession

21:26:15.459 [http-bio-8080-exec-1] DEBUG org.mybatis.spring.SqlSessionUtils - SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@40f3af02] was not registered for synchronization because synchronization is not active

二月 28, 2019 9:26:15 下午 com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager

信息: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 2, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 10000, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 2z57xka1ei83mc1s8fd5m|3a3a1951, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 2z57xka1ei83mc1s8fd5m|3a3a1951, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://localhost:3306/cassell?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 30, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 10, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]

Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.

21:26:16.108 [http-bio-8080-exec-1] DEBUG o.m.s.t.SpringManagedTransaction - JDBC Connection [com.mchange.v2.c3p0.impl.NewProxyConnection@f36e122] will not be managed by Spring

21:26:16.132 [http-bio-8080-exec-1] DEBUG com.yfj.dao.ManagerDao.queryById - ==>  Preparing: select id,password,name from manager where id=? 

21:26:16.224 [http-bio-8080-exec-1] DEBUG com.yfj.dao.ManagerDao.queryById - ==> Parameters: 2001(Long)

21:26:16.332 [http-bio-8080-exec-1] DEBUG com.yfj.dao.ManagerDao.queryById - <==      Total: 1

21:26:16.364 [http-bio-8080-exec-1] DEBUG org.mybatis.spring.SqlSessionUtils - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@40f3af02]


qq_MEGALOVANIA_0
浏览 402回答 0
0回答
打开App,查看更多内容
随时随地看视频慕课网APP
我要回答