本文介绍在Spirng Boot 2 下使用Junit 5 和Mockito来测试API的调用和类方法的调用。 1. Maven 依赖. spring-boot-strater-test 从2.2.0版本就自带 ...
確定! 回上一頁