AngularJS GET请求返回404,尽管它可以访问

时间:2016-11-10 16:48:16

标签: angularjs spring

将AngularJS Rest URL作为来自AngularJS的GET请求解雇  返回404虽然它在服务器上命中了所需的方法  side(spring implementaiton)并产生所需的结果

有人可以告诉我可能是什么问题吗?

以下是触发angularjs请求的方法

 getCredentials : function(){
             return $http.get('/helloRest/getUsername');
 } 

上述方法导致

   URL : http://localhost:8083/helloRest/getUsername
下面的

是堆栈跟踪

 <body>
 <h1>HTTP Status 404 - /helloRest/getUsername</h1>
 <div class="line"></div><p><b>type</b> Status report</p><p>
 <b>message</b> 
 <u>/helloRest/getUsername</u></p><p>
 <b>description</b> 
 <u>The requested resource is not available.</u></p>
 <hr class="line"><h3>Apache Tomcat/8.0.37</h3></body></html>

0 个答案:

没有答案
相关问题