2017-07-13 4 views
0

Ajaxを使用して休憩サービスを呼び出そうとすると404エラーが表示されます。Ajaxを使用して休憩サービスを呼び出そうとするとエラーが発生する

WARファイル名:ドキュメント

サーバー側のURLマッピング、

@RequestMapping(method = RequestMethod.POST, value = "/document/document/download.ws") 
    public HttpEntity<DownloadDocumentResponse> downloadDocument(
      @RequestBody final DownloadDocumentRequest downloadDocumentRequest) throws Exception { 
     final DownloadDocumentResponse downloadDocumentResponse = documentWs.downloadDocument(downloadDocumentRequest); 
     downloadDocumentResponse.setApplicationContext(null); 
     return new ResponseEntity<DownloadDocumentResponse>(downloadDocumentResponse, HttpStatus.OK); 

    } 

クライアント側のURL: "NetworkError:404は見つかりません - http://localhost:8080/document/document/download.ws"

+0

次へお試しください: http:// localhost:8080/Document/document/document/download.ws – NikNik

答えて

0

私はそのパスのエラーだと思います。あなたのドメインへのパスが正しく書かれていない

+1

あなたは回答を投稿するのではなく、コメントする必要があります。 – NikNik

関連する問題