SpringTest注解选择配置文件

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:config/applicationContext.xml"})
@ActiveProfiles("dev")
public class BillTestBySpringTest {

@Autowired
private EntBillTotalService entBillTotalService;

原文地址:https://www.cnblogs.com/zplogo/p/9791978.html