latest CXF with Spring: WARNING: javax.ws.rs.NotFoundException
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am able to access REST services from the browser url: http://localhost:8080/assignment/services/services/test/test1 From My servlet, I use to call service method as shown below. Now I need to call through REST services but getting below error. URL url = new URL("http://localhost:8080/assignment/services/services/"+userName+"/"+password); System.out.println("URL-->"+url); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("Accept", "application/xml");