@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({ "/query.xml" })
@Transactional
public class QueryTest {
@Resource
private JdbcTemplate jdbcTemplate;
@Test
public void insert() {
}
}
query.xml
为spring的配置文件
@ContextConfiguration({ "/query.xml" })
@Transactional
public class QueryTest {
@Resource
private JdbcTemplate jdbcTemplate;
@Test
public void insert() {
}
}
query.xml
为spring的配置文件