猿问

我是按照老师的敲的怎么会报错

java.lang.NullPointerException
	at org.seckill.dao.SeckillDaoTest.queryById(SeckillDaoTest.java:25)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:73)
	at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
	at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:73)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:224)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:83)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
	at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:68)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:163)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

http://img.mukewang.com/592c8ba60001219007530636.jpg

http://img.mukewang.com/592c8ba7000192cd07220537.jpg

http://img.mukewang.com/592c8ba90001b9fc08260739.jpg


卫宣
浏览 1664回答 3
3回答

慕的地8582982

BNRFWYLPNLFYDWABCQHHOIMABEPNCSSHVYEOUFLINFTCZPZAURBYYFPMILORDQNDKRGTHDQLJATKLDAJQOYIQGEIZQQCMNFCSRYMSEBVVSAAIWNDNHEVGNNBNENEVZZALBIMWEIKEIPQWTMJRKVAMTTTISMCCGBNMCTQAJWZHBLARREPRXHKYCZZZXSWIRFGDUVOMDPGGRCKPPZGYRHBLVPZKAUTAWRHTZQHFMDTZJLCZQQHYWFSFZWIJUDBPFLGTXLPJPTSPPJJTKBVESASQTDFAZTJXXVLYCMIYFMASEKFZTQSSSQSNCIEEBWDDAYURBLZUDJGHYBSCWALMDDUBDZZEISZXNEFXNELPJOUUCPJKBYVQDXUPJORVCSMMMWGGDPCJHURLYLWJZMCDVVPSMIXLIFLCSQAXVQAJAFFFSCTUSZZMJDGJEIYDZCAALICLLTISGWYTWKZRYNUBOSJMTDBVIPICWQXEONHSIDEOSGUQOTCCMGRRPDJHFWDBJWKQZGXIRHQYVWTKJUXEUADKPCZMJXNTTZOIFTFMDTPKNOJPQFZXNCXXHRQYLTQETFPWJTUNLJPSEJJKALNZATFSWDKXBEWUIEXXEVDXJDUTILTKEYAZNHWAXNDIFFOQCGLODJGTVVVJLHDSWBUYXMMYKNKRRDQAEHNZTNDUWANHBOVIPNRYGQXBRQZYFGOBEIPFTARBJUWTUEGEXOVOOBBVSUNSQVFOGFTDYNHRPGTNYLCNDABIPVNGUKNXULBWQTMEBFILYOOLOIJAHNKKPDDONSFHOZPOFPLEPVAQYPDUFPZHKXNQEJZTQADANBUOLMHPGOLUKGEJQPEXUIXXHXOYOBUBSUZYCDXWXNEETWWQLCCTJXC

精慕门9254224

@autowired private SeckillDao seckillDao;
随时随地看视频慕课网APP

相关分类

Java
我要回答