摘要:
今天使用juint时,测试了几个方法,分别为查询所有,查询单个,保存一个,更新一个,删除一个。 @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = "classpath:bean.xml") public 阅读全文
posted @ 2020-02-23 23:39
遍唱阳春
阅读(665)
评论(0)
推荐(0)
摘要:
配置步骤: 1.导入Spring整合Junit的jar(坐标): <dependency> <groupId>org.springframework</groupId> <artifactId>spring-test</artifactId> <version>5.0.2.RELEASE</vers 阅读全文
posted @ 2020-02-23 23:21
遍唱阳春
阅读(336)
评论(0)
推荐(0)
摘要:
1.首先新建一个maven项目,我的项目中的内容如下: IAccountService接口: package com.itheima.service; //账户业务层接口 public interface IAccountService { //模拟保存用户 public void saveAcco 阅读全文
posted @ 2020-02-23 16:20
遍唱阳春
阅读(256)
评论(0)
推荐(0)