摘要: 一、集成步骤 ① 导入spring集成Junit的坐标② 使用@Runwith注解替换原来的运行期③ 使用@ContextConfiguration指定配置文件或配置类④ 使用@Autowired注入需要测试的对象⑤ 创建测试方法进行测试 1.导入坐标 <dependency> <groupId>o 阅读全文
posted @ 2022-03-08 22:53 FinnYY 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 一、配置命名空间 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema 阅读全文
posted @ 2022-03-08 22:25 FinnYY 阅读(19) 评论(0) 推荐(0) 编辑