為啥我吧Assert.assertEquals(true, udao.usersLogin(u)); 的true改成false 在 junit里面就是綠條了, 是true的話就有紅條junit.framework.AssertionFailedError: expected: but was: at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.failNotEquals(Assert.java:277)
Assert.assertEquals(true, udao.usersLogin(u)); 的true改成false 在 junit里面就是綠條了, 是true的話就有紅條
2017-06-06
把struts的antlr2.7.2包勾選掉就好了
MyEclipse中,在MyEclipse 下,windows–>preferences–>MyEclipse–>Project libraries
2017-05-14
我也是這個(gè)問題 ,不知道樓主這樣解決的
2017-05-08
我的是update,可是也是這樣的問題,數(shù)據(jù)庫里也有數(shù)據(jù)
2017-05-07
因?yàn)樗虞d的時(shí)候會(huì)生成新的表,把hibernate配置里的create改成update就行了
<property name="hbm2ddl.auto">update</property>
2017-05-03
你這個(gè)弄懂了嗎
2017-04-07
是不是數(shù)據(jù)庫里沒數(shù)據(jù),要不然就是表單數(shù)據(jù)填錯(cuò)了