摘要:
1配置坐标 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>5.0.5.RELEASE</version> </dependency> 2配置spr 阅读全文
摘要:
1导入坐标 <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.0.5.RELEASE</version> </dependency> <depe 阅读全文
摘要:
1 导入坐标 2使用@Runwith来替换原来的运行期 3使用@ContextConfiguration指定配置文件或者配置类 4注入需要测试的对象 5 测试 集成前 @Test public void test6() throws Exception{ ApplicationContext app 阅读全文