mybatis 获取对象为空,咋回事呢,debug 也是执行力sql语句
EBUG-PooledDataSourceforcefullyclosed/removedallconnections.DEBUG-PooledDataSourcefor...
EBUG - PooledDataSource forcefully closed/removed all connections.
DEBUG - PooledDataSource forcefully closed/removed all connections.
DEBUG - PooledDataSource forcefully closed/removed all connections.
DEBUG - Created connection 228598363.
DEBUG - ooo Connection Opened
DEBUG - ==> Executing: select * from cake where cake_id = ?
DEBUG - ==> Parameters: 1(Integer)
DEBUG - <== Columns: cake_id, cake_name, cake_price
DEBUG - <== Row: 1, 慕斯1, 500.0000
Exception in thread "main" java.lang.NullPointerException
at com.mybatis.Test.getRecord(Test.java:56)
at com.mybatis.Test.main(Test.java:33) 展开
DEBUG - PooledDataSource forcefully closed/removed all connections.
DEBUG - PooledDataSource forcefully closed/removed all connections.
DEBUG - Created connection 228598363.
DEBUG - ooo Connection Opened
DEBUG - ==> Executing: select * from cake where cake_id = ?
DEBUG - ==> Parameters: 1(Integer)
DEBUG - <== Columns: cake_id, cake_name, cake_price
DEBUG - <== Row: 1, 慕斯1, 500.0000
Exception in thread "main" java.lang.NullPointerException
at com.mybatis.Test.getRecord(Test.java:56)
at com.mybatis.Test.main(Test.java:33) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询