SpringTest注解选择配置文件

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

@Autowired
private EntBillTotalService entBillTotalService;

posted on 2018-10-15 16:57  ${}  阅读(383)  评论(0编辑  收藏  举报

导航