2
testingのためにbeans.xmlファイルを置き換えるにはどうすればよいですか? は、私は、initクラスにSpringのBeans.xml設定を置き換えます。
@SpringBootApplication
@ImportResource("classpath:Beans.xml")
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
を使用していますが、私のテストクラス
@RunWith(SpringRunner.class)
@SpringBootTest
public class ArrayCointainerTest {
に私は別のものを使用したいと思います。 これはどうですか?