2017-03-06 6 views
0

おそらく、私は質問を間違ったと言いました。私は、applicationContext.xmlの代わりにクラスパスで利用可能なすべてのJava設定ファイルをロードしたいと言っていました。このような何か - @ImportResource注釈付きJavaベースのコンフィグレーションにおけるSpringのインポート

@Configuration 
@ImportResource("Some other configuration java files which might be in the dependant projects but in the same classpath") 
public class AppConfig { 

} 
+2

'Javaベースの構成では、あなたのXML設定をインポートします。 http://stackoverflow.com/questions/15004674/spring-3-importresource-with-multiple-files – dnault

答えて

1

てみImportResource` @

@Configuration 
@ImportResource("classpath*:beancontext/applicationContext.xml") 
public class AppConfig { 

} 
+0

ご返信ありがとうございます。おそらく、私は間違った言葉を述べました –

関連する問題