maven依賴導入進來,jar包也加載完,但在代碼中總是找不到包
當時導入的依賴
<!--mockito框架-->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.9.5</version>
<scope>test</scope>
</dependency>
在main.java目錄下寫測試用例怎么都倒不進來包
后來發現,原來當maven依賴中的<scope/>里是test
的是時候,測試用例智能寫在main.test目錄下,在這
個目錄下才能成功倒包,而eclipse卻不存在這個問題,
idea還是非常嚴謹的