Junit版本錯誤問題(附junit jar包下載地址)java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing
junit各版本下載地址:
https://pan.baidu.com/s/1PclfyaNbWQ5IPywpLQWvpA
提取碼:qzwz
當用junit測試類中的test方法時,出現以下異常,那就肯定是junit的 版本太新;
我的版本是junit-4.12
更換爲低版本後,運行正常
junit各版本下載地址:
https://pan.baidu.com/s/1PclfyaNbWQ5IPywpLQWvpA
提取碼:qzwz
當用junit測試類中的test方法時,出現以下異常,那就肯定是junit的 版本太新;
我的版本是junit-4.12
更換爲低版本後,運行正常
在子模塊的pom.xml的最後加入這幾行,然後重新clean install 即可 <build> <plugins> <plugin> <groupId>org.springfr