問題原因:在於默認的parent中的版本springboot有固定的指定
刪除指定版本
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<!-- 默認的版本為3.8.1,修改為4.x,因為3.x使用的為編程的方式,4.x為注解的形式。 -->
<version>4.12</version><!-- 刪除這個 -->
</dependency>
問題原因:在於默認的parent中的版本springboot有固定的指定
刪除指定版本
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<!-- 默認的版本為3.8.1,修改為4.x,因為3.x使用的為編程的方式,4.x為注解的形式。 -->
<version>4.12</version><!-- 刪除這個 -->
</dependency>
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。