在maven项目的pom.xml文件中添加依赖

<dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.12</version>
</dependency>

右键 Generate...

posted on 2024-01-04 14:34  Mysticbinary  阅读(10)  评论(0编辑  收藏  举报