1
@SpringBootApplication
//@ImportResource({"classpath:dubbo.xml"})
//I want to specify the xml file with command line arguments at run time
public class App {
public static void main(String[] args) {
// How to import the XML file now?
SpringApplication.run(App.class, args);
}
}
XMLファイルを実行時に指定し、メインメソッドでインポートしたいとします。私に何ができる?"ImportResource"アノテーションを使用しないでspringブートアプリケーションでxmlファイルをインポートする方法
メソッドスタブを提供する代わりに、あなたが試したことを提供してください。これは問題の最下部に到達するのに役立ちます。私たちはヘルプチャネルであり、チュートリアルではありません。 :) –