maven項目中測試數據庫的情況

1. 使用springmvc的單元測試類 類上標註的註解爲: ①@RunWith(SpringJUnit4ClassRunner.class) ②@ContextConfiguration(locations = {"classpath:applicationContext.xml", "file:src/main/webapp/WEB-INF/dispatcherServlet-servlet.
相關文章
相關標籤/搜索