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

public List<Seckill> queryAll(int offset, int limit); 没有给定参数名称时,系统日志没有打印报错信息

测试查询所有秒杀商品时,虽然没有通过,但是控制台没有给出报错信息。这是什么原因呢?

以下是给出的信息:

七月 02, 2016 5:10:45 下午 org.springframework.test.context.support.DefaultTestContextBootstrapper getDefaultTestExecutionListenerClassNames
信息: Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
七月 02, 2016 5:10:45 下午 org.springframework.test.context.support.DefaultTestContextBootstrapper getTestExecutionListeners
信息: Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@48a242ce, org.springframework.test.context.support.DependencyInjectionTestExecutionListener@1e4a7dd4, org.springframework.test.context.support.DirtiesContextTestExecutionListener@4f51b3e0, org.springframework.test.context.transaction.TransactionalTestExecutionListener@4b9e255, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@5e57643e]
七月 02, 2016 5:10:45 下午 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [spring-dao.xml]
七月 02, 2016 5:10:46 下午 org.springframework.context.support.GenericApplicationContext prepareRefresh
信息: Refreshing org.springframework.context.support.GenericApplicationContext@70b0b186: startup date [Sat Jul 02 17:10:46 CST 2016]; root of context hierarchy
七月 02, 2016 5:10:46 下午 org.springframework.beans.factory.config.PropertyPlaceholderConfigurer loadProperties
信息: Loading properties file from class path resource [jdbc.properties]
七月 02, 2016 5:10:46 下午 com.mchange.v2.log.MLog <clinit>
信息: MLog clients using java 1.4+ standard logging.
七月 02, 2016 5:10:47 下午 com.mchange.v2.c3p0.C3P0Registry banner
信息: Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
17:10:47.380 [main] DEBUG org.apache.ibatis.logging.LogFactory - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
17:10:47.593 [main] DEBUG o.m.spring.SqlSessionFactoryBean - Parsed configuration file: 'class path resource [mybatis-config.xml]'
17:10:47.711 [main] DEBUG o.m.spring.SqlSessionFactoryBean - Parsed mapper file: 'file [D:\ranjiexu\eclipseworkspace\seckill\target\classes\mapper\SeckillMapper.xml]'
17:10:47.745 [main] DEBUG o.m.spring.SqlSessionFactoryBean - Parsed mapper file: 'file [D:\ranjiexu\eclipseworkspace\seckill\target\classes\mapper\SuccessKilledMapper.xml]'
17:10:50.611 [main] DEBUG org.mybatis.spring.SqlSessionUtils - Creating a new SqlSession
17:10:50.646 [main] DEBUG org.mybatis.spring.SqlSessionUtils - SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@617fe9e1] was not registered for synchronization because synchronization is not active
17:10:50.662 [main] DEBUG org.mybatis.spring.SqlSessionUtils - Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@617fe9e1]
七月 02, 2016 5:12:58 下午 org.springframework.context.support.GenericApplicationContext doClose
信息: Closing org.springframework.context.support.GenericApplicationContext@70b0b186: startup date [Sat Jul 02 17:10:46 CST 2016]; root of context hierarchy


正在回答

3 回答

到JUnit下看下呢

http://img1.sycdn.imooc.com//5779c56f0001064411930271.jpg

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

ranjiexu 提问者

JUnit中有报错信息,可是为什么控制台没有呢?
2016-07-04 回复 有任何疑惑可以回复我~
#2

ranjiexu 提问者

非常感谢!
2016-07-25 回复 有任何疑惑可以回复我~

我的junit一直卡在Validating seckill不动是咋回事

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


要控制台打日志,可以使用slf4j+logback等日志记录;

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

举报

0/150
提交
取消

public List<Seckill> queryAll(int offset, int limit); 没有给定参数名称时,系统日志没有打印报错信息

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