Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このコードでエラーが発生しています:
@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = { "classpath:applicationContext.xml" })
エラー:
file not found exception
私を助けてください。
applicationContext.xml の場所を検索する必要があります。クラスパスにある必要があります。classes ディレクトリ内にあることを確認することをお勧めします。そうでない場合は、applicationContext.xml ファイルをソース フォルダーに移動してクラス ディレクトリに除外するか、単体テストの場所を変更してください。