closeTo我無法在 Eclipse 中使用 hamcrest 方法。其他方法如is,iscloseto可用。我開始學習 Spring 并遵循視頻教程。在其中,講師正在使用closeTo內部is來測試方法。它對我不起作用。gradle 依賴就在那里。 查看完整描述