新建的项目,开始还以为是配置有问题,后来才发现,到数据库查询确实是0,'Total: 1’表示返回1行,而非结果为1
2019-05-31 09:37:20,299 DEBUG @ [org.mybatis.spring.SqlSessionUtils.getSqlSession(SqlSessionUtils.java:104)] - Creating a new SqlSession
2019-05-31 09:37:20,332 DEBUG @ [org.mybatis.spring.SqlSessionUtils.getSqlSession(SqlSessionUtils.java:140)] - SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@7b63cd2a] was not registered for synchronization because synchronization is not active
2019-05-31 09:37:21,435 INFO @ [com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:669)] - {dataSource-1} inited
2019-05-31 09:37:21,443 DEBUG @ [org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:86)] - JDBC Connection [com.mysql.jdbc.JDBC4Connection@2fdc7949] will not be managed by Spring
2019-05-31 09:37:21,482 DEBUG @ [org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug(BaseJdbcLogger.java:139)] - ==> Preparing: select count(*) from T_PUB_USER WHERE ( LOGIN_NAME = ? and PASSWORD = ? )
2019-05-31 09:37:21,664 DEBUG @ [org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug(BaseJdbcLogger.java:139)] - > Parameters: zhs(String), 5b2b575c91fd24ac77d46f5662295cb9262e674586546c05ccf21d47(String)
2019-05-31 09:37:21,794 DEBUG @ [org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug(BaseJdbcLogger.java:139)] - < Total: 1
2019-05-31 09:37:21,795 DEBUG @ [org.mybatis.spring.SqlSessionUtils.closeSqlSession(SqlSessionUtils.java:168)] - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@7b63cd2a]