问答详情
源自:-

一路磕磕盼盼终于进入最后秒杀,可是~~~

前端是这样的,http://img.mukewang.com/57c66f5f00018a9106910527.jpg




eclipse 控制台

DEBUG org.mybatis.spring.SqlSessionUtils - Creating a new SqlSession
DEBUG org.mybatis.spring.SqlSessionUtils - SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@e50d4] was not registered for synchronization because synchronization is not active
DEBUG o.m.s.t.SpringManagedTransaction - JDBC Connection [com.mchange.v2.c3p0.impl.NewProxyConnection@1a6032d] will not be managed by Spring
 DEBUG com.anec.dao.SeckillDao.queryById - ==>  Preparing: SELECT seckill_id,name,number,start_time,end_time,create_time FROM seckill WHERE seckill_id = ?
 DEBUG com.anec.dao.SeckillDao.queryById - ==> Parameters: 1000(Long)
DEBUG com.anec.dao.SeckillDao.queryById - <==      Total: 1
DEBUG org.mybatis.spring.SqlSessionUtils - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@e50d4]

提问者:adai123 2016-08-31 13:51

个回答

  • adai123
    2016-08-31 14:51:37

    http://img.mukewang.com/57c67e470001f47704160203.jpg

    还有这个~

  • adai123
    2016-08-31 13:53:00

    为何JDBC没有被SPRING管理?