Loading...
步骤导入SpringTest模块@ContextConfiguration注解指定Spring配置文件的位置 自动创建IOC容器@RunWith指定spring单元测试模块直接使用@Autowired或@Resource注解注入需要测试的组件1.1 导入Spring-test jar包下载地址: https://mvnrepository.com/artifact/org.springfra...