为了账号安全,请及时绑定邮箱和手机立即绑定

mysql端口配置问题,sql也是正确的,为什么查不出来?在workbench里就可以

信息: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 2, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 1000, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> z8kfsx9m1m0nssi1s77551|7aaca91a, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> z8kfsx9m1m0nssi1s77551|7aaca91a, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://127.0.0.1:3306/graduation?useUnicode=true&characterEncoding=utf8, 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 ]

16:33:54.730 [main] DEBUG o.m.s.t.SpringManagedTransaction - JDBC Connection [com.mchange.v2.c3p0.impl.NewProxyConnection@5af9926a] will not be managed by Spring

16:33:54.736 [main] DEBUG o.a.dao.AccountDao.queryByName - ==>  Preparing: select a_id,a_name,a_password,a_grade,a_enable from account where a_name = ? and a_password = ? and a_enable = 1 

16:33:54.908 [main] DEBUG o.a.dao.AccountDao.queryByName - ==> Parameters: admin(String), 123(String)

16:33:54.941 [main] DEBUG o.a.dao.AccountDao.queryByName - <==      Total: 1

16:33:54.949 [main] DEBUG org.mybatis.spring.SqlSessionUtils - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@1b5bc39d]

null三月 15, 2017 4:33:54 下午 org.springframework.context.support.GenericApplicationContext doClose

信息: Closing org.springframework.context.support.GenericApplicationContext@731f8236: startup date [Wed Mar 15 16:33:52 CST 2017]; root of context hierarchy

Disconnected from the target VM, address: '127.0.0.1:42779', transport: 'socket'



正在回答

3 回答

问一下啊该怎么解决

0 回复 有任何疑惑可以回复我~

请问题主最后如何解决该问题的?

0 回复 有任何疑惑可以回复我~
#1

台风下雨天 提问者

只是没有封装成实体类,查是查出来了
2017-04-08 回复 有任何疑惑可以回复我~

什么查不出来?日志里不是有 Total: 1?

0 回复 有任何疑惑可以回复我~
#1

台风下雨天 提问者

嗯,是没有自动封装
2017-03-21 回复 有任何疑惑可以回复我~
#2

_桃花依旧笑春风 回复 台风下雨天 提问者

怎样自动封装呢 在action里面加入bean对象 然后get set方法?
2018-04-03 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

mysql端口配置问题,sql也是正确的,为什么查不出来?在workbench里就可以

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信