在SpringBoot的測試類別加上 @RunWith(SpringRunner.class) ,意思就是使用 SpringRunner 來執行測試程式。 測試方法必須加上 @Test 才會被JUnit執行。
確定! 回上一頁