终点格式为http://localhost:8080/api/user/name/id/uid
和
this.http.get('/api/user/' + this.authService.name + this.authService.sid+ this.authService.userid )
.subscribe(result => {
console.log('get ====>' + JSON.stringify(result));
});
答案 0 :(得分:0)
只需放置 +' /' + 它将给出终点格式
this.http.get('/api/user/' + this.authService.namespace + '/' + this.authService.userid + '/' + this.authService.sid )