私はSpringのJavaプログラムでJersey Frameworkに従おうとしているHello Worldでテストを行っています。filenotfoundexception running jerseyTest - missing applicationContext.xml
私はJerseyTestを拡張しましたが、上記のエラーが発生しています。ジャージーの例ではlinkは役に立たないようです。
public class SimpleTest extends JerseyTest {
@Override
protected Application configure() {
return new ResourceConfig(RestService.class);
}
@Test
public void test() {
final String hello = target("\service\hello").request().get(HelloModel.class);
assertEquals("Hello World!", hello);
}
}
これは何でしょうか? AnnotationConfigApplicationContext(YourSpringConfig.class)。私はアプリケーションとjerseyconfigを試しましたが、動作しませんでした。 – user269964
あなたは何を意味するのか正確には分かりません。 –
私は2番のリンクに行きました。私は、彼らが学んだレッスンの内容に従っていました。こんにちは世界の.packages(com.service.rs)をやっています。 NoClassDefFound on inject/Binder – user269964